You cannot use a complex selector like this in your animation () factory method. You can use only one CSS class name per level. Instead, make your factory animated method conditional based on your browser's capabilities, using $ sniffer to determine if you have transitions.
//you can make this an EMPTY string if you want this animation to apply to ALL //possible elements... app.animation('.slideup-form', function($sniffer) { if(!$sniffer.transitions) { //this object will conditionally be added if the browser doesn't support //native CSS3 animations return { enter : function(element, done) {}, leave : function(element, done) {}, move : function(element, done) {}, beforeAddClass : function(element, className, done) {}, addClass : function(element, className, done) {}, beforeRemoveClass : function(element, className, done) {}, removeClass : function(element, className, done) {} } } });
Just remember the done () call in the JS animation code. Also upgrade to 1.2.5.
source share