jquery.animatetimeline
Provides the ability to animate a declaritive animation timeline
Example w/ Parent Element
;var elements = 'bg': '.background' 'tx': '.text';var timeline = // Prep start: 0 el: 'el' props: display: 'none' start: 0 el: 'bg' props: left: '0px' opacity: 0 start: 0 el: 'tx' props: left: '0px' opacity: 0 start: 0 el: 'el' props: display: 'block' // Intro start: 0 el: 'bg' props: left: '500px' opacity: 1 duration: 2000 start: 1000 el: 'tx' props: left: '5500px' opacity: 1 duration: 1000;;
Example w/o Parent element
var elements = 'oldBack': 'oldText': 'newBack': 'newText': ;// This transition requires two elements name "new" and "old"var timeline = // Preperation start: 0 el: 'newBack' props: left: '600px' opacity: 0 zIndex: 5 start: 0 el: 'newText' props: left: '-15px' opacity: 0 zIndex: 10 start: 0 el: 'oldBack' props: left: '0px' opacity: 1 zIndex: 7 start: 0 el: 'oldText' props: left: '0px' opacity: 1 zIndex: 11 start: 0 el: 'newBack' props: display: 'block' start: 0 el: 'newText' props: display: 'block' // Start moving backgrounds and old text start: 0 el: 'newBack' props: left: '0px' opacity: 1 duration: 2000 start: 0 el: 'oldBack' props: left: '-600px' opacity: 0 duration: 2000 start: 0 el: 'oldText' props: left: '15px' opacity: 0 duration: 1000 // Slide In new Text start: 1000 el: 'newText' props: left: '0px' opacity: 1 duration: 1000 // Clean-up old Text start: 1060 el: 'oldText' props: display: 'none' // Clean-up old BG start: 2060 el: 'oldBack' props: zIndex: 5 display: 'none';$;