Skip to content

Instantly share code, notes, and snippets.

@nevir
Last active August 29, 2015 14:10
Show Gist options
  • Save nevir/1a73d1a7dbf308e72980 to your computer and use it in GitHub Desktop.
Save nevir/1a73d1a7dbf308e72980 to your computer and use it in GitHub Desktop.
// This is what I want. (target inheritance, I think?)
element.animate(
new AnimationGroup([
new Animation([
{opacity: '0'},
{opacity: '1'}],
{duration: 350}),
new Animation([
{transform: 'scale(0)'},
{transform: 'scale(1)'},
],
{duration: 1000},
]),
)
// this is the current world, right?
element.animate(
new AnimationGroup(element, [
new Animation(element, [
{opacity: '0'},
{opacity: '1'}],
{duration: 350}),
new Animation(element, [
{transform: 'scale(0)'},
{transform: 'scale(1)'},
],
{duration: 1000},
]),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment