We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40c862 commit 07c8a9bCopy full SHA for 07c8a9b
src/effects.js
@@ -636,9 +636,12 @@ jQuery.extend( jQuery.fx, {
636
637
// Ensure props that can't be negative don't go there on undershoot easing
638
jQuery.each( fxAttrs.concat.apply( [], fxAttrs ), function( i, prop ) {
639
- jQuery.fx.step[ prop ] = function( fx ) {
640
- jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
641
- };
+ // exclude marginTop, marginLeft, marginBottom and marginRight from this list
+ if ( prop.indexOf( "margin" ) ) {
+ jQuery.fx.step[ prop ] = function( fx ) {
642
+ jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
643
+ };
644
+ }
645
});
646
647
if ( jQuery.expr && jQuery.expr.filters ) {
0 commit comments