Comparing version
@@ -78,2 +78,7 @@ class El { | ||
disappear () { | ||
this.style('opacity', 0) | ||
return this | ||
} | ||
focus () { | ||
@@ -80,0 +85,0 @@ this.$el.focus() |
{ | ||
"name": "eldo", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Tiny chainable DOM manipulation lib.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -59,2 +59,3 @@ # el.js | ||
- `appear()` | ||
- `disappear()` | ||
- `focus()` | ||
@@ -206,2 +207,8 @@ - `html(value)` | ||
### Disappear element | ||
`$myEl.disappear()` | ||
Sets `opacity` to `0`. | ||
### Focus element | ||
@@ -208,0 +215,0 @@ |
9309
1.65%144
2.86%325
2.2%