Skip to content

Commit fbbfecf

Browse files
committed
🍃 Animation library completely rewrited
1 parent 7ce7445 commit fbbfecf

File tree

5 files changed

+680
-1063
lines changed

5 files changed

+680
-1063
lines changed

ANIMATION.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,19 @@ For performance purposes, you can only animate the opacity and css transformatio
6363
opacity: [0, 1],
6464
// You can pass the unit as
6565
// third element of the Array.
66-
x: [0, 100, 'px'],
6766
// For x & y, default unit is '%'
67+
x: [0, 100, 'px'],
6868
y: [10, 100],
6969
scale: [1, 1.5],
7070
scaleX: [0, 1],
7171
scaleY: [0, 1],
7272
// Default unit for rotation is 'deg'
7373
rotate: [0, 360],
7474
rotateX: [0, 1, 'turn'],
75-
rotateY: [-90, 180],
75+
// Or simply past a string with unit as end
76+
// value, the start value will be
77+
// calculated (less optimized)
78+
rotateY: "2turn",
7679
}
7780
```
7881

@@ -82,7 +85,7 @@ Determines the acceleration curve of your animation (the easing).
8285

8386
| Default | Type |
8487
|:------- |:------------------ |
85-
| `io2` | String \| Function |
88+
| `io4` | String \| Function |
8689

8790
Except the `linear` easing, all the available easings are composed as follows:
8891

0 commit comments

Comments
 (0)