Skip to content

[css-animations] Can't loop animation with multiple keyframes #1726

@Timmmm

Description

@Timmmm

See this Stackoverflow question.

Currently CSS animations lets you do this:

animation-name: a;
animation-iteration-count: infinite;

which will play a infinitely. Or this:

animation-name: a, b;
animation-iteration-count: 1, 1;

which will play a then b then stop. But there is no way to make it play a then b then loop infinitely. This seems like a pretty common thing to want to do.

As a solution I suggest allowing something like this:

animation-name: a, b;
animation-iteration-count: 1, 1, repeat;

By the way, it's off-topic but the spec disallows this, which actually works - at least in Chrome:

animation-iteration-count: 1, infinite;

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