Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d73a10d

Browse files
fix: remove inline style 'angle' property on 'rotate' animation
with the inline CSS property set, the moveBack animation was not rotating the element back up, as the inline CSS setting the angle property has a higher priority over the angle set in the js-css-animations.css
1 parent a26ed80 commit d73a10d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎js-css-animations/animate.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ const removeMotionCssClass = element => {
304304
cl.match(/js\-anim\-\-(rotate|scale)/)
305305
);
306306
if (className) element.classList.remove(className);
307+
if (className === CLASS_NAMES.move[MOTION_ANIMS_ID.rotate]) {
308+
element.style.removeProperty(PROPERTY_NAMES.angle);
309+
}
307310
};
308311

309312
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /