properties
changelog

Animation Direction

Set animation direction to play forward, reverse, or alternate.

Usage:

  • @animate direction-*;

Reference

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

  properties: {
    animate: {
      direction: {
        property: "animation-direction: <v><i>;",
        values: {
          normal: "normal", // from -> to
          reverse: "reverse", // to -> from
          boomerang: "alternate-reverse", // from -> to -> from
          strikeback: "alternate", // to -> from -> to
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: