Skip to content

[css-animations] Add keyframe selectors for the animationstart and animationend eventsΒ #6687

@simevidas

Description

@simevidas

Spec: https://drafts.csswg.org/css-animations/#keyframes

Maybe it would be a good idea to add start and end keyframe selectors that would represent the animationstart and animationend events. That would enable code like this:

@keyframes fadeOut {
  to { opacity: 0 }
  end { display: none }
}

It seems that, currently, authors have to apply display: none via JavaScript.


Related Twitter discussion

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions