MDN self-hosted library · e01.org

<animation-action>

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
animation-trigger: --t play;
css
animation-trigger: --t play reset;
css
animation-trigger: --t play play-backwards;
css
animation-trigger: --t play-forwards;
css
animation-trigger: --t play-forwards play-backwards;
css
animation-trigger: --t play-forwards pause;
css
animation-trigger: --t play-backwards;
css
animation-trigger: --t play-once pause;
css
animation-trigger: --t play-once replay;
css
animation-trigger: --t play-once reset;
css
animation-trigger: --t play-once play-backwards;
css
animation-trigger: --t pause play;
css
animation-trigger: --t replay pause;
css
animation-trigger: --t reset play;
html
<div class="animated">I am animated</div>

...

<div class="trigger">I create the trigger</div>

...