married-animation.js
637 Bytes
/**
* @author: Gustavo Rodrigues
* @email: gugateider@gmail.com
* Edit the array 'animationArr' below accordingly to the creative
* animation you wish to achieve
* Each item of the array corresponds to each frame.
* If you have an object within this item called 'child',
* javascript will animate that child, otherwise will animate the
* entire "section"
*/
var tweenDuration = .07;
var animationArr = [[
// Frame 1
{
type: 'to',
child: '#imageBG',
duration: tweenDuration+4,
object: {scale:0.5, transformOrigin:"540px 220px"},
complete: "startGenericAnimation"
}
]];