Skip to content

Instantly share code, notes, and snippets.

@peutetre
Created June 11, 2015 16:20
Show Gist options
  • Save peutetre/b250399e9a5a7fccb771 to your computer and use it in GitHub Desktop.
Save peutetre/b250399e9a5a7fccb771 to your computer and use it in GitHub Desktop.
dkzn
var cube = create({
width:'100px',
height:'100px',
backgroundColor:
'rgb(253,107,107)',
top: (height/2 - 50) + 'px',
left: (width/2 - 50) + 'px',
opacity: 0
});
return Zanimo(
cube,
'opacity',
1,
1000
).then(Zanimo.f(
'background-color',
'rgb(118, 189, 255)',
1000,
'ease-in-out'
)).then(Zanimo.f(
'transform',
'rotate(361deg)',
1000,
'ease-in-out'
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment