janpaepke / ScrollMagic

The javascript library for magical scroll interactions.
http://ScrollMagic.io
Other
14.9k stars 2.17k forks source link

Examples updated to gsap 3 #951

Open simobari opened 4 years ago

simobari commented 4 years ago

Hi,

do you have an example of this case using gsap object instead of tweenmax (that was deprecated)?

https://scrollmagic.io/examples/expert/image_sequence.html

Thanks in advance

slecorvaisier commented 4 years ago

The following should work:

var tween = gsap.to(obj,
  {
    duration: 0.5,
    // ... others options, check gsap v3 doc to see breaking changes

If I am not mistaken, scrollmagic is shipped with gsap v2 via plugins/animation.gsap.js, so do not forget to import gsap v3 in your project.

mrlaseptima commented 4 years ago

i wanna example with gsap 3 . please add this.