Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(ELEMENT).animate({
left: [ 200, 'easeInOut' ],
top: [ 100, 'easeInSine' ],
width: 500
}, 1000, 'linear');
// The "linear" easing will only be used for the
// "width" property as the other two ("top" & "left")
// have their own easing functions to follow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment