properties
changelog

Entry Animation

Define entry animations for elements appearing on screen.

Usage:

  • @animate enter;
  • @animate enter-unset;

Reference

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

  properties: {
    animate: {
      enter: {
        property: "<v>",
        special: true,
        values: {
          DEFAULT: `
            animation-name: enter<i>;
            animation-duration: 0.25s<i>;
          `,
          unset: `
            --entr-opct: unset<i>;
            --entr-scl: unset<i>;
            --entr-rtt: unset<i>;
            --entr-mv-x: unset<i>;
            --entr-mv-y: unset<i>;
          `,
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: