Skip to content

Bug: EaseMotion animation classes inside <dialog> don't re-trigger on showModal() #17385

Description

@Nareshkumawat-star

Describe the bug

When EaseMotion animation classes (e.g. ease-fade-in, ease-slide-up) are applied to content inside an HTML <dialog> element, the animations play once on first open but do NOT re-trigger on subsequent showModal() calls.

Steps to Reproduce

  1. Create a <dialog> with a child div using ease-fade-in
  2. Call dialog.showModal() — animation plays –> close the dialog
  3. Call dialog.showModal() again — animation does NOT replay

Expected Behavior

Animation should replay every time the dialog opens.

Suggested Fix

Document the @starting-style CSS workaround for modern browsers, and provide a JS snippet that removes and re-adds the animation class on dialog open.

Metadata

Metadata

Labels

GSSoC-26Official GSSoC 2026 issueanimationAnimation effects, hover interactions, motion ideas, transitionsgood first issueGood for newcomersgssoc:approvedApproved for GSSoC contributionshelp wantedExtra attention neededlevel:intermediateRequires moderate project understanding

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions