properties
changelog

Animation Play State

Control animation state transitions and pauses.

Usage:

  • @animate state-*;
  • @animate state-paused;
  • @animate state-playing;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    animate: {
      state: {
        property: "animation-play-state: <v><i>;",
        values: {
          paused: "paused",
          playing: "running",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: