Commit 13e2b79
committed
3.15.0
- NEW: adaptive directional easing via a new "easeReverse" property which allows you to define a different ease to be used in reverse (when the animation's playhead moves backwards). yoyoEase is deprecated in favor of easeReverse. See https://gsap.com/blog/3-15
- FIXED: on case-insensitive systems, a TypeScript error could be thrown when importing Draggable, Observer, or Flip plugins. See #637
- FIXED: if you create GSAP-related objects inside a ScrollTrigger's snap onStart/onComplete and the ScrollTrigger was created inside a gsap.context() (including in the React useGSAP() hook), they wouldn't be associated with that context and therefore may not be cleaned up properly. See https://gsap.com/community/forums/topic/45266-scrolltrigger-snapping-problem-when-trying-to-create-a-scroll-slideshow/
- FIXED: SplitText may fail to split elements inside an iframe. See #640
- FIXED: in some cases, if ScrollTrigger is loaded AFTER the core GSAP library, it wouldn't integrate Observer properly with ScrollTrigger which could lead to odd behavior like if the <html> element had scroll-behavior: smooth, it wouldn't properly get removed during ScrollTrigger's refresh which could break pinning on resize. See https://gsap.com/community/forums/topic/45290-scroll-behavorsmooth-issue/
- FIXED: in SplitText, if you set a wordsClass, charsClass, or linesClass with an increment ("++", like wordsClass: "word++") AND a mask on that same part (like mask: "words"), the resulting mask element would only have the "-mask" part applied to the incremented class like "word word1-mask" instead of "word-mask word1-mask".
- FIXED: if you gsap.registerPlugin(ScrollTrigger) BEFORE the <body> (like inside the <head>), and then attempt to add a scrollerProxy(), it could throw an error. ScrollTrigger needs access to the <body> so if it's not present yet when you try to register, it can't fully instantiate. Now ScrollTrigger will add a DOMContentLoaded listener in that case.
- FIXED: if you set a ScrollTrigger so that its "scroller" is an iframe element, the markers may not show up. See https://gsap.com/community/forums/topic/45330-scrolltrigger-pin-not-working-in-iframe/
- FIXED: SplitText no longer does a console.warn() when it's called BEFORE the fonts were loaded because some browsers were reporting that fonts were reloading on resize (thus warnings were being fired too frequently due to browsers behaving oddly in the way they reported font loading status).
- FIXED: a JSDoc comment on the play() method was misleading - it indicated that play(true) would play from the current playhead position but instead the boolean "true" would be coerced to 1 and the animation would start from the 1-second spot in that scenario. See #6431 parent e830e8f commit 13e2b79
144 files changed
Lines changed: 667 additions & 721 deletions
File tree
- dist
- esm
- utils
- src
- utils
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments