properties
changelog

Spin Animation

Apply spinning or rotating animations to elements.

Usage:

  • @animate spin-in-*;
  • @animate spin-out-*;

Reference

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

  properties: {
    animate: {
      spin: {
        in: {
          property: "--entr-rtt: <n><v><i>;",
          themeKey: "angles",
          values: {
            DEFAULT: "0deg",
          },
        },

        out: {
          property: "--ext-rtt: <n><v><i>;",
          themeKey: "angles",
          values: {
            DEFAULT: "0deg",
          },
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: