Jump to content


how to use Greensock with Rails

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello, I'm new with greensock and rails. I found this demo   very fascinating so I want to add it to my project.
Then Firstly, I added the .html.erb file.
Then added css to .scss file 
Then added js to .js file
added gem to gemfile
added require require/Tweenmax to js require tree
But the web page did't show any animation
Can anybody know how to figure it out? Thanks a lot.

See the Pen yhEmn by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

I'm totally unfamiliar with Rails, so I won't be much help.


Those "dependencies" are just JavaScript files that need to be loaded on the page for it to work, but please note that several of them (ScrambleTextPlugin, SplitText, and Physics2DPlugin) are members-only plugins that come with Club GreenSock. See http://greensock.com/club/. 

Link to comment
Share on other sites

I have no idea how to answer that. I thought Rails was a server-side language. 

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.