ywlee Posted July 26, 2021 Share Posted July 26, 2021 Hi everyone While playing Flip plugin on Codepen, I found these words in the console : Quote A trial version of Flip is loaded that only works locally and on domains like codepen.io ... But when I downloaded the file and put a script tag in my html, it doesn't work(I'm using Parcel and a local server). I guess in this way the file doesn't know it's been used in a local environment? I also tried import { Flip } from 'pathToFile' it doesn't work either... What should I do instead? Could anyone give me a hint? Thank you for reading my question:) Link to comment Share on other sites More sharing options...
GreenSock Posted July 26, 2021 Share Posted July 26, 2021 By "local", it just tests if the URL starts with "file://" OR contains "localhost" or "127.0.0.1". You're probably using a different setup locally that doesn't follow one of those conventions. The plugin isn't made to sense every local server setup possible, sorry. You are welcome to use those CodePen-safe trial files on CodeSandbox.io or StackBlitz.com. We haven't announced anything officially yet, but there is a "gsap-trial" package on NPM that you could use. It has exactly the same limitations, though - it's just that some people find it more convenient to do module imports. https://www.npmjs.com/package/gsap-trial 1 Link to comment Share on other sites More sharing options...
ywlee Posted July 26, 2021 Author Share Posted July 26, 2021 Really appreciate your helpful and quick reply. My URL contains "localhost", maybe there is other problem which I don't know, but gsap-trial works well for me. Very very thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now