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/utilities/animations.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ By default, all Ionic Animations are paused until the `play` method is called.
206
206
207
207
import Codepen from '@site/src/components/Codepen';
208
208
209
-
<Codepenuser="ionic"slug="bGbMojP"></Codepen>
209
+
<Codepenuser="ionic"slug="bGbMojP" />
210
210
211
211
## Keyframe Animations
212
212
@@ -300,7 +300,7 @@ In the example above, the `.square` element will transition from a red backgroun
300
300
301
301
Each keyframe object contains an `offset` property. `offset` is a value between 0 and 1 that defines the keyframe step. Offset values must go in ascending order and cannot repeat.
This example shows 3 child animations controlled by a single parent animation. Animations `squareA` and `squareB` inherit the parent animation's duration of 2000ms, but animation `squareC` has a duration of 5000ms since it was explicitly set.
In this example we are creating a track along which we can drag the `.square` element. Our `animation` object will take care of moving the `.square` element either left or right, and our `gesture` object will instruct the `animation` object which direction to move in.
1156
1156
1157
-
<Codepenuser="ionic"slug="jONxzRL"></Codepen>
1157
+
<Codepenuser="ionic"slug="jONxzRL" />
1158
1158
1159
1159
## Preference-Based Animations
1160
1160
@@ -1256,7 +1256,7 @@ This method works in all supported browsers when creating animations for the fir
1256
1256
1257
1257
Safari does not currently support dynamically updating keyframe animations. For developers who need this kind of support in Safari, they can use [MediaQueryList.addListener()](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener).
In the example above, we want to be able to detect double clicks on an element. By setting our `threshold` to `0`, we can ensure our gesture object can detect clicks. Additionally, we define a click threshold so that only 2 clicks that occur in quick succession count as a double click.
0 commit comments