For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/properties/animation-iteration-count.md.
Lynx
  • English
  • animation-iteration-count

    Introduction

    animation-iteration-count property specifies the number of times an animation should be played.

    Examples

    Syntax

    animation-iteration-count: infinite;
    
    animation-iteration-count: 3;
    
    animation-iteration-count: 2, 0, infinite;

    Values

    infinite

    The animation will repeat forever.

    <number>

    The number of times the animation should repeat. Can be a non-integer value. A value of 0 will cause the animation to have no effect.

    Info

    When animation-iteration-count is 0, Lynx will treat it as an animation with duration 0, and its lifetime will continue as usual. This differs from standard CSS animations where it would be treated as if the animation didn't work at all.

    Formal definition

    Initial value1
    Applies toall elements
    Inheritedno
    Animatableno

    Formal syntax

    /*default value: 1*/
    animation-iteration-count: <number> | infinite;

    See also

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.