Jump to content
Search Community

Draggable don't have any transition by importing the plugin

rmonell test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

Hi everybody

 

I recently learn how to implement a basic slider by using the Draggable plugin.

 

But as you can see on this sandBox the drag effect work but has no transition.

https://codesandbox.io/s/upbeat-browser-q8ox7?file=/index.html

 

However I wrote the exact same code on code pen by importing the plugin via cdn and as you can see it works

 

If anybody could help my to demistify this issue it would bu very cool !

Thank you in advance !

See the Pen BazWPPG by rmonell (@rmonell) on CodePen

Link to comment
Share on other sites

  • Solution

Hey rmonell and welcome to the GreenSock forums. 

 

Notice that the CodePen demo is using a really old version of GSAP. Also notice that it's loading ThrowPropsPlugin, which is the old version of InertiaPlugin. 

 

If you make sure to load InertiaPlugin (this uses the trial version) it works: https://codesandbox.io/s/beautiful-cherry-n3e1d?file=/src/index.js

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...