Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
chris1203

how to use Greensock with Rails

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.
![](https://ww3.sinaimg.cn/large/006tKfTcgy1fc1xdmmdy4j31kw12gn3e.jpg)
Then added css to .scss file 
![](https://ww2.sinaimg.cn/large/006tKfTcgy1fc1xhn9s7cj31kw13uacd.jpg)
Then added js to .js file
![](https://ww4.sinaimg.cn/large/006tKfTcgy1fc1xkbk590j31eg132acn.jpg)
added gem to gemfile
![](https://ww2.sinaimg.cn/large/006tKfTcgy1fc1xl19s46j315a122dia.jpg)
added require require/Tweenmax to js require tree
![](https://ww1.sinaimg.cn/large/006tKfTcgy1fc1xm1zityj311s0x6wgt.jpg)
 
But the web page did't show any animation
![](https://ww1.sinaimg.cn/large/006tKfTcgy1fc1xnbcvqlj31kw0u2mxk.jpg)
 
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.
×