select-animation 1.1.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "select-animation",
3
- "version": "1.1.5",
3
+ "version": "1.2.1",
4
4
  "description": "High-performance JavaScript animation engine for organic & fluid motion",
5
5
  "main": "select-animation.js",
6
6
  "scripts": {
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 "select-animation";
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.querySelector(".box");
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
- })(element);
70
+ })();
70
71
  ```
71
72
 
72
73
  ---