Skip to content

Commit f9a4639

Browse files
Fix README
1 parent 18689e2 commit f9a4639

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ You can [find them here](https://the-illarionov.com/the-supersonic-plugin-for-sc
155155
Check [types declarations](https://the-illarionov.com/the-supersonic-plugin-for-scroll-based-animation/types) to see all of the configuration options.
156156
157157
The Plugin consists of 3 classes:
158-
1. `TheSupersonicPlugin`, which is act like main entry point.
158+
1. `TheSupersonicPlugin`, which acts like main entry point.
159159
2. `Driver`, which calculates it's progress from 0 to 1 according to current scroll and position of `start` and `end` elements.
160160
3. `Animation`, which is responsible for storing and setting CSS Animation `currentTime` property.
161161

@@ -178,13 +178,13 @@ const animation = new Animation({
178178
```
179179

180180
## Possible issues
181-
1. When you have **lots** of animations (more hundred), plugin can start to lag a little on start.
181+
1. When you have **lots** of animations (more 500), plugin can start to lag a little on start.
182182

183183
It's because `domElement.getAnimations()` doesn't scale too well.
184184

185185
If you really need to have lots of animations, implement lazy initialization of animation at `onActivation` driver hook. Or you can manually updating properties like [i did with 1000 Bartholomeows](https://the-illarionov.com/the-supersonic-plugin-for-scroll-based-animation/bartholomeow).
186186

187-
2. If you have **lots** of drivers (more thousand), plugin can start to lag a little on start.
187+
2. If you have **lots** of drivers (more 1000), plugin can start to lag a little on start.
188188

189189
It's because plugin fires `updateLimits()` on start to set proper top distances to all elements, which causes `reflow`.
190190

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ <h1>6. Using 'uninit' to stop rendering at all</h1>
148148
style="width: 100%"
149149
scrolling="no"
150150
title="The Supersonic Plugin For Scroll Based Animation: Using 'uninit' to stop rendering at all"
151-
src="https://codepen.io/Alex-Illarionov/embed/gOyjQmX?default-tab=result"
151+
src="https://codepen.io/Alex-Illarionov/embed/GRLBwWM?default-tab=result"
152152
frameborder="no"
153153
loading="lazy"
154154
allowtransparency="true"
155155
allowfullscreen="true"
156156
data-test="example-6"
157157
>
158158
See the Pen
159-
<a href="https://codepen.io/Alex-Illarionov/pen/gOyjQmX">
159+
<a href="https://codepen.io/Alex-Illarionov/pen/GRLBwWM">
160160
The Supersonic Plugin For Scroll Based Animation: Using 'uninit' to
161161
stop rendering at all</a
162162
>

docs/public/example.glb

1.56 MB
Binary file not shown.

0 commit comments

Comments
 (0)