Capítulo 156 de 411
SlowMo (EasePack) produces a decelerate-linear-accelerate motion profile in a single smooth ease, avoiding the visible velocity "joints" that happen when chaining three separate eased tweens to fake the same effect.
0.7.1 can reverse the linear middle section for unusual effects. Default 0.7.true, produces a companion ease shape suited for a second tween (e.g. opacity) that fades in during the deceleration phase and fades out during the acceleration phase, synced to the same duration as the main SlowMo tween.gsap.registerPlugin(EasePack).gsap.to(myText, { duration: 5, x: 600, ease: "slow" });
gsap.to(myText, { duration: 5, x: 600, ease: "slow(0.5, 0.8)" });
// a companion opacity tween synced to the motion above
gsap.from(myText, { duration: 5, opacity: 0, ease: "slow(0.5, 0.8, true)" });
yoyoMode to sync the fade to the deceleration/acceleration phases.yoyoMode is the key to syncing a secondary property (like opacity) to the same timing without manual duration math.