select-animation 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +5 -4
- package/select-animation.js +695 -705
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -50,7 +50,7 @@ or via CDN if available.
|
|
|
50
50
|
### Usage with ES Modules:
|
|
51
51
|
|
|
52
52
|
```javascript
|
|
53
|
-
import
|
|
53
|
+
import { animate, selectDom } from 'select-animation';
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
---
|
|
@@ -58,15 +58,16 @@ import "select-animation";
|
|
|
58
58
|
# 🚀 Basic Example
|
|
59
59
|
|
|
60
60
|
```javascript
|
|
61
|
-
const element = document.
|
|
61
|
+
const element = document.querySelectorAll(".box");
|
|
62
|
+
//or const element = selectDom(".box","div",......);
|
|
62
63
|
|
|
63
|
-
animate({
|
|
64
|
+
animate(element,{
|
|
64
65
|
property: ["left", "opacity"], // Properties to animate
|
|
65
66
|
from: 0, // Starting values
|
|
66
67
|
to: 300, // Ending values
|
|
67
68
|
duration: 1000, // Duration in milliseconds
|
|
68
69
|
typeAnimation: "bounceout" // Easing type
|
|
69
|
-
})(
|
|
70
|
+
})();
|
|
70
71
|
```
|
|
71
72
|
|
|
72
73
|
---
|