properties
changelog

Zoom Animation

Apply zoom in or zoom out animations to elements.

Usage:

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

Reference

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

  properties: {
    animate: {
      zoom: {
        in: {
          property: "--entr-scl: <n><v><i>;",
          themeKey: "fractions",
          values: {
            DEFAULT: 1,
          },
        },

        out: {
          property: "--ext-scl: <n><v><i>;",
          themeKey: "fractions",
          values: {
            DEFAULT: 1,
          },
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: