Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iron.Route.prototype.dispatch = (url, context, done) ->
- Iron.utils.assert context._runRoute, "context doesn't have a _runRoute method"
- $('.content, .footer').removeClass('fadeIn')
- setTimeout =>
- context._runRoute(this, url, done)
- , 100 # Change to however long your 'fade out' transition takes
- Router.onAfterAction ->
- $('.content, .footer').addClass('fadeIn')
- # CSS
- .content,
- .footer
- transition opacity 0.1s ease
- opacity 0
- .content.fadeIn,
- .footer.fadeIn
- transition opacity 0.5s ease
- opacity 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement