Created
November 9, 2011 19:28
-
-
Save gcpantazis/1352640 to your computer and use it in GitHub Desktop.
Animating CSS3 transforms (and other non-numerics) with jQuery.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$elem.animate({ | |
'customScale': someScaleValue | |
}, { | |
step: function(now, fx){ | |
if ( fx.prop == 'customScale' ) { | |
$elem.css({ | |
'-webkit-transform': 'scale('+now+')' | |
}); | |
} | |
} | |
}, 250); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment