Joined February 2014
·
Posted to
Animated Page Transitions in Rails 4 Apps
over 1 year
ago
Hey Great post! Thanks. I am wondering if you can think of a way to bind the transitions differently, based on the page that is being changed.
For example, If I am on a homepage and go to projects index it will slideInRightBig & going back home will slideInLeftBig.
However if I select a project show from the index, the index will slideOutDownBig & going back to index will slideInUpBig - any thoughts?
Achievements
48 Karma
0 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Thanks for the response. Yeah I continued with it, using turbolinks and got further down the rabbit hole.
I found out that turbolinks does not save the window.referrer so I could not bind the next transition based on the referrer. I tried setting a global js variable, but the way the turbolinks/coffeescript was set up was overwriting the variable every transition. Back to the drawing board. I think I will add meta-tags to specific links and use those to bind which transition I will bind.
Thanks for the response. & once again, thanks for the OP.