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
- <!-- The web-component package is `@lottiefiles/dotlottie-wc` (the SDK
185
- `@lottiefiles/dotlottie-web` does NOT expose a custom element).
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
- gsap.set(".lottie", { scale: 0.3, opacity: 0 });
202
- tl.to(".lottie", { scale: 1, opacity: 1, duration: 0.35, ease: "back.out(1.6)" }, 0.2);
203
- </script>
204
- ```
205
-
206
- Or use lottie-web for more control:
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
- ```javascript
209
- var anim = lottie.loadAnimation({
210
- container: document.getElementById("anim"),
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
  ---