You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/examples.json
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,5 +99,62 @@
99
99
"text": "The 'staggerDelay', 'delay' and 'duration' options can either be specified as a number, representing the total time in milliseconds, or as a string. If passed as a string, it should contain the time unit: 's' for second, or 'ms' for milliseconds, exactly as you would use in the CSS 'animation-delay' property, for example."
A set of predefined rotation animations is available to choose from:
293
+
294
+
-**rotateUp**: will always bring the element to its original position by setting rotation angle to _0 degrees_.
295
+
-**rotateDown**: rotation angle will be set to _180 degrees_.
296
+
-**rotateLeft**:_270 degrees_.
297
+
-**rotateRight**:_90 degrees_.
298
+
299
+
### Counter Clockwise
300
+
301
+
There's also a set of predefined counter clockwise rotations:
302
+
303
+
- **rotateDownCCW**: rotation angle will be set to _-180 degrees_.
304
+
- **rotateLeftCCW**: _-90 degrees_.
305
+
- **rotateRightCCW**: _-180 degrees_.
306
+
307
+
::: tip
308
+
_Notice that when toggling back up from any rotation, the element will rotate in the opposite direction of the initial rotation. For example: when using **rotateLeftCCW** to rotate an element by clicking a button, the first time the button is clicked the element will rotate **-90 degrees** (counter clockwise), then, in the next button click, the element will toggle back up by rotating clockwise back to zero degrees._
0 commit comments