Skip to content

Instantly share code, notes, and snippets.

@inossidabile
Created May 30, 2012 11:06
Show Gist options
  • Save inossidabile/2835542 to your computer and use it in GitHub Desktop.
Save inossidabile/2835542 to your computer and use it in GitHub Desktop.
Joosy / Load, unload and 'in-progress' animations
# pages/application.js.coffee
class @ApplicationPage extends Joosy.Page
@beforePaint (container, complete) ->
#@layout.showSystemPreloader() if !@dataFetched
complete()
@paint (container, complete) ->
#@layout.hideSystemPreloader()
container.fadeTo 80, 0, =>
complete().fadeTo 400, 1
@erase (container, complete) ->
container.fadeTo 320, 0.2, =>
complete()
@scroll '.nagivation', margin: -1, speed: 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment