Skip to content

Instantly share code, notes, and snippets.

@kesne
Created May 27, 2012 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kesne/2795796 to your computer and use it in GitHub Desktop.
Save kesne/2795796 to your computer and use it in GitHub Desktop.
Villo Books "Slade" Transition
enyo.Book.transition({
name: "slade",
auto: true,
directional: true,
transition: {
duration: 500,
next: {
visible: {
opacity: 1,
transform: {
translateX: "0%"
}
},
hidden: {
opacity: 0,
transform: {
translateX: "-50%"
}
}
},
back: {
visible: {
opacity: 1,
transform: {
translateX: "0%"
}
},
hidden: {
opacity: 0,
transform: {
translateX: "-50%"
}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment