Define your own keyframes and animation utilities through theme.extend — slide-ins, fades, marquees.
Classes#
reference
// nakshora.config.js
theme: {
extend: {
keyframes: {
rise: { from: { opacity: 0, transform: "translateY(8px)" }, to: { opacity: 1, transform: "none" } },
},
animation: { rise: "rise 0.4s ease-out both" },
},
}Example#
example
// nakshora.config.js
theme: {
extend: {
keyframes: {
rise: { from: { opacity: 0, transform: "translateY(8px)" }, to: { opacity: 1, transform: "none" } },
},
animation: { rise: "rise 0.4s ease-out both" },
},
}Responsive & variants#
Every class here accepts screen prefixes (xxs: … 5xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.
Best practices#
- Name animations by intent (rise, fade-in), not effect
- Both
fromandtokeep reduced-motion fallbacks sane
Related#
utilities/transitions/transition-property|Transitions
