Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Created September 17, 2012 15:00
Show Gist options
  • Save chrislerum/3737862 to your computer and use it in GitHub Desktop.
Save chrislerum/3737862 to your computer and use it in GitHub Desktop.
motion app, with bubble-wrap, sugarcube et al.
# this works, takes 10 secs to slide over
def viewDidLoad
self.view.slide :left, {duration: 10}
end
# but I'd like it to slide when I pan, but the below just instantly removes the view, no animation.
def viewDidLoad
self.view.whenPanned do
self.view.slide :left, {duration: 10}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment