Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created July 28, 2010 23:06
Show Gist options
  • Save rwaldron/496657 to your computer and use it in GitHub Desktop.
Save rwaldron/496657 to your computer and use it in GitHub Desktop.
Burst({
'arbitrary-timeline-name' : {
start: 0,
frames: 100,
ratio: 1,
loop: false,
finish: function () {},
tracks: {
'arbitrary-red-square' : {
ref: redBox.style,
props:
[
{ prop: 'left',
keys: [
[ 0,0, 'inOutBounce'],
[ 100,50 ],
]
}
]
},
'arbitrary-green-square' : {
ref: function (attrs) {
$('#greenBox').css(attrs);
},
props:
[
{ prop: 'top',
keys: [
[0,0,'inOutBounce'],
[50,50]
]
},
{ prop: 'width',
keys: [
[0,50],
[50,50],
[75,200],
[100,50]
]
}
]
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment