Created
May 27, 2012 01:15
-
-
Save kesne/2795796 to your computer and use it in GitHub Desktop.
Villo Books "Slade" Transition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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