Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Iron.Route.prototype.dispatch = (url, context, done) ->
  2. Iron.utils.assert context._runRoute, "context doesn't have a _runRoute method"
  3. $('.content, .footer').removeClass('fadeIn')
  4.  
  5. setTimeout =>
  6. context._runRoute(this, url, done)
  7. , 100 # Change to however long your 'fade out' transition takes
  8.  
  9. Router.onAfterAction ->
  10. $('.content, .footer').addClass('fadeIn')
  11.  
  12. # CSS
  13. .content,
  14. .footer
  15. transition opacity 0.1s ease
  16. opacity 0
  17.  
  18. .content.fadeIn,
  19. .footer.fadeIn
  20. transition opacity 0.5s ease
  21. opacity 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement