Hi,
I can't figure out how to convert the code provided by the demo from gsap1 to the latest version. If I include gsap3 all slide placements are wrong
thx a lot
See the Pen JjYbjaM by gooogooo (@gooogooo) on CodePen
The changes needed to update the demo to the new gsap version are :
- Update all src to newest
https://unpkg.co/gsap@3/dist/gsap.min.js
https://assets.codepen.io/16327/InertiaPlugin.min.js // ThrowPropsPlugin now is InertiaPlugin https://unpkg.com/gsap@3/dist/Draggable.min.js
- Change the default props
TweenLite.defaultEase = Linear.easeNone;
to
gsap.defaults({
ease: "none",
});
- Change all TweenMax to gsap
- Remove throwProps and add inertia to Dragg