We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65cfef1 commit c4a8bb6Copy full SHA for c4a8bb6
README.md
@@ -106,14 +106,7 @@ const renderAnimation = () => {
106
};
107
requestAnimationFrame(renderAnimation);
108
109
-// Initial frame.
110
-animation.transition({
111
- duration: 0, // Render immediately.
112
- callback: loopAnimation,
113
- blobOptions: {...},
114
-});
115
-
116
-// Loop between random blobs every 4s.
+// Keyframe loop.
117
const loopAnimation = () => {
118
animation.transition({
119
duration: 4000,
@@ -122,6 +115,13 @@ const loopAnimation = () => {
122
blobOptions: {...},
123
});
124
+
+// Initial frame.
120
+animation.transition({
121
+ duration: 0, // Render immediately.
+ callback: loopAnimation,
+ blobOptions: {...},
+});
125
```
126
127
## Complete API
0 commit comments