Skip to content

Commit 376ebf9

Browse files
committed
3.11.2
- IMPROVED: Flip plugin tweens that are created inside a gsap.matchMedia() or gsap.context() will now jump to the end which is the more intuitive behavior. - IMPROVED: you can set autoResize: false on a ScrollSmoother's configuration object to have it NOT automatically resize the body when the content resizes. - IMPROVED: ScrollSmoother is gsap.context()-aware, meaning when a ScrollSmoother is created inside a context and that context gets reverted, the ScrollSmoother will also get killed. This applies to gsap.matchMedia() as well. - FIXED: regression in 3.11.1 - if you ScrollTrigger.refresh() when the scroll position is already in the active part of a ScrollTrigger with callbacks, it may fire those even though there was no movement. - FIXED: checking the scroll() of a ScrollTrigger immediately after you manually change the scroll position may result in a cached value being used instead of the new/fresh one. - FIXED: if you alter a child tween's duration when it's inside of a timeline that has smoothChildTiming set to false, the duration of the parent timeline may not be updated. See https://greensock.com/forums/topic/33806-adding-a-new-tween-to-a-played-timeline-and-play-it-again - FIXED: if a ScrollSmoother is in the process of smoothly animating the scroll when the content resizes and/or a ScrollTrigger.refresh() is triggered, it will now continue properly instead of stopping. See https://greensock.com/forums/topic/33552-when-is-it-safe-to-call-scrollsmootherscrollto-after-dynamically-adding-an-element-to-the-dom/ - FIXED: regression in 3.11.0 could cause .from() or .fromTo() tweens to appear not to render their initial state properly in certain situations. See https://greensock.com/forums/topic/33829-stagger-with-from-and-opacity-is-broken-in-last-gsap-update - FIXED: if you use one of the new independent CSS transform components like "scale", "translate", or "rotate" (NOT as a part of "transform"), and there's no regular transform applied, it may not get parsed properly. See https://greensock.com/forums/topic/33861-gsap-bug-with-scale-animation/ - FIXED: if you apply a Draggable to an SVG element and attempt to interact with anything in the parent <svg> on a touch device, it may not honor native gestures like pinch-zooming or touch-scrolling. See https://greensock.com/forums/topic/33835-how-to-keep-native-scrollingzooming-on-non-draggable-svg-elements/ - FIXED: if you force the playhead of the parent of a yoyo'd animation beyond its end position before it ever started (meaning the child's playhead would go from 0 to...0!), it didn't fire its onComplete. See https://greensock.com/forums/topic/33746-completing-all-currently-running-animations/ - FIXED: a regression in 3.11.0 caused from() tweens of non-CSS properties of DOM elements not to work properly. See https://greensock.com/forums/topic/33878-the-counter-number-does-not-work-with-the-new-version-3111/ - FIXED: if you gsap.getById() a timeline that has a ScrollTrigger BEFORE it has even started, it may not find it. See https://greensock.com/forums/topic/33889-get-timeline-by-its-id/ - FIXED: if you kill() a ScrollSmoother, it may remove the "height" property of the <body>. - FIXED: if you applied the CSS scroll-behavior: smooth to a page with ScrollTriggers, the page may scroll back up to the top in a certain scenario. - FIXED: window.history.scrollRestoration was set to "manual" by ScrollTrigger, but now it is restored to the original value after refresh() so that the window's scroll position has a better chance of being restored. See https://greensock.com/forums/topic/33990-scrolltrigger-lose-scrolltop-on-history-back/ - FIXED: there was a regression in 3.11.0 that could cause fromTo() tweens to render their initial position incorrectly in a very rare, specific scenario.
1 parent 040091c commit 376ebf9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+554
-356
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ View the <a href="https://greensock.com/docs">full documentation here</a>, inclu
2020

2121
### CDN
2222
```html
23-
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.1/gsap.min.js"></script>
23+
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.2/gsap.min.js"></script>
2424
```
2525
Click the green "Get GSAP Now" button at <a href="https://greensock.com/?download=GSAP-JS">greensock.com</a> for more options and installation instructions, including CDN URLs for various plugins.
2626

dist/CSSRulePlugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}(this, (function (exports) { 'use strict';
66

77
/*!
8-
* CSSRulePlugin 3.11.1
8+
* CSSRulePlugin 3.11.2
99
* https://greensock.com
1010
*
1111
* @license Copyright 2008-2022, GreenSock. All rights reserved.
@@ -51,7 +51,7 @@
5151
};
5252

5353
var CSSRulePlugin = {
54-
version: "3.11.1",
54+
version: "3.11.2",
5555
name: "cssRule",
5656
init: function init(target, value, tween, index, targets) {
5757
if (!_checkRegister() || typeof target.cssText === "undefined") {

dist/CSSRulePlugin.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CSSRulePlugin.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/CustomEase.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
}
356356

357357
/*!
358-
* CustomEase 3.11.1
358+
* CustomEase 3.11.2
359359
* https://greensock.com
360360
*
361361
* @license Copyright 2008-2022, GreenSock. All rights reserved.
@@ -704,7 +704,7 @@
704704
return CustomEase;
705705
}();
706706
_getGSAP() && gsap.registerPlugin(CustomEase);
707-
CustomEase.version = "3.11.1";
707+
CustomEase.version = "3.11.2";
708708

709709
exports.CustomEase = CustomEase;
710710
exports.default = CustomEase;

0 commit comments

Comments
 (0)