hyperframes 0.6.64 → 0.6.66
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.
|
@@ -181,38 +181,23 @@ The slide distance DECAYS per word (80→12px) — mimics a camera settling.
|
|
|
181
181
|
Vector animations that play inside a composition. Use for logos, character animations, icons.
|
|
182
182
|
|
|
183
183
|
```html
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
The element tag is <dotlottie-wc>. -->
|
|
187
|
-
<script
|
|
188
|
-
src="https://cdn.jsdelivr.net/npm/@lottiefiles/dotlottie-wc/dist/dotlottie-wc.js"
|
|
189
|
-
type="module"
|
|
190
|
-
></script>
|
|
191
|
-
<dotlottie-wc
|
|
192
|
-
class="lottie"
|
|
193
|
-
src="capture/assets/lottie/animation-0.json"
|
|
194
|
-
autoplay
|
|
195
|
-
loop
|
|
196
|
-
speed="1.5"
|
|
197
|
-
style="width:500px;height:500px;"
|
|
198
|
-
>
|
|
199
|
-
</dotlottie-wc>
|
|
184
|
+
<div id="anim" class="lottie"></div>
|
|
185
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js"></script>
|
|
200
186
|
<script>
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
187
|
+
window.__hfLottie = window.__hfLottie || [];
|
|
188
|
+
|
|
189
|
+
const anim = lottie.loadAnimation({
|
|
190
|
+
container: document.getElementById("anim"),
|
|
191
|
+
renderer: "svg",
|
|
192
|
+
loop: false,
|
|
193
|
+
autoplay: false,
|
|
194
|
+
path: "capture/assets/lottie/animation-0.json",
|
|
195
|
+
});
|
|
196
|
+
window.__hfLottie.push(anim);
|
|
207
197
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
renderer: "svg",
|
|
212
|
-
loop: false,
|
|
213
|
-
autoplay: false,
|
|
214
|
-
path: "capture/assets/lottie/animation-0.json",
|
|
215
|
-
});
|
|
198
|
+
gsap.set("#anim", { scale: 0.3, opacity: 0 });
|
|
199
|
+
tl.to("#anim", { scale: 1, opacity: 1, duration: 0.35, ease: "back.out(1.6)" }, 0.2);
|
|
200
|
+
</script>
|
|
216
201
|
```
|
|
217
202
|
|
|
218
203
|
---
|