A Powerful CSS Animation Library for Advanced Motion Design.
npm install @hellouxpavel/cssanimationbash
npm i @hellouxpavel/cssanimation
`
#### Or install with Yarn
`bash
yarn add @hellouxpavel/cssanimation
`
#### Import Everything (Core Library, CSS Utility Classes & Letter Animation):
`bash
import '@hellouxpavel/cssanimation';
`
#### Individual Imports (if you only need specific parts):
CSS only
`bash
// Core CSS animations
import '@hellouxpavel/cssanimation/css';
// Utility CSS classes (like speed, delay, easing)
import '@hellouxpavel/cssanimation/utility';
`
For Letter Animations (JavaScript required for this part):
`bash
//letter-by-letter, word-by-word, and line-by-line animations
import '@hellouxpavel/cssanimation/letter';
`
$3
Quickly add {css}animation to your HTML. Include these lines in your tag:
`html
href="https://cdn.jsdelivr.net/npm/@hellouxpavel/cssanimation@latest/dist/cssanimation.min.css"
rel="stylesheet"
/>
href="https://cdn.jsdelivr.net/npm/@hellouxpavel/cssanimation@latest/dist/cssanimation-utility.min.css"
rel="stylesheet"
/>
`
$3
Once installed, simply add the base.cssanimation to your element, along with your chosen animation class like .ca__fx-FadeIn for fade in animation.
`html
cssanimation
`
_That's it! You've got a CSS animated element. Super! ๐_
For the demo and list of animation class name click here.
$3
We use clear prefixes to help you find the right animation or utility class.
| Prefix | Description | Example Usage |
| --------- | ------------------------------------------------ | ------------------------------- |
| ca__fx- | Visual FX animations (pure CSS) | |
| ca__u- | Utility classes (pure CSS spacing, layout, etc.) | |
Modular Import
Want to keep your CSS bundle size minimal? You can import only the animation groups or individual effects you actually use!
HTML
`html
`
CSS, SCSS or JavaScript (Webpack, Vite, Rollup)
`CSS
// Grouped module
@import './dist/modules/ca__BlurIn.css';
`
#### Available Modules
Check out the ./dist/modules/ folder to see all available animation groups:
| Module | File |
| ----------------------- | -------------------------------- |
| Blob Animation Group | ./dist/modules/ca__Blob.css |
| Blur In Animation Group | ./dist/modules/ca__BlurIn.css |
| Bounce Animation Group | ./dist/modules/ca__Bounce.css |
| Elastic Animation Group | ./dist/modules/ca__Elastic.css |
| FadeIn Animation Group | ./dist/modules/ca__FadeIn.css |
| ...and more | See ./dist/modules/ folder |
Individual Animation Imports
Need just one animation, like fadeIn, bounceX, or zoomIn? You can import individual effect files too.
HTML
`html
`
CSS, SCSS or JavaScript (Webpack, Vite, Rollup)
`CSS
// Individual effect
@import './dist/animations/ca__fadeIn.css';
`
#### Available Individual Effects
Each file in the ./dist/animations/ folder is a standalone animation with scoped styles and keyframes. Explore and import only what you need!
Utility Class
{css}animation also provides a powerful set of pre-built utility classes to fine-tune your animations. Use them alongside the .cssanimation base class and your chosen animation class.
This includes:
- .ca__u-speed*: Control animation speed (e.g., .ca__u-speedChill).
- .ca__u-ease*: Set easing functions (e.g., .ca__u-easeSnappy).
- .ca__u-loop*: Define repeat settings (e.g., .ca__u-loopTriple).
- .ca__u-delay*: Add animation delays (e.g., .ca__u-delay3).
Check out the full list and details in cssanimation-utilities.md.
$3
AnimText - Letter, Word & Line Text Animation JS Library
Add Smart Text Animations with AnimText
AnimText is a lightweight JavaScript plugin that brings your {css}animation classes to life โ one letter, word, or line at a time.
Perfect for headlines, hero sections, callouts, and more.
- Supports data-at-sequence, data-at-random, data-at-word, data-at-line, and more
- Works out of the box with {css}animation classes like ca__fx-fadeIn
- No dependencies โ just plug and play!

๐ Get Started with AnimText โ
Triggle - Simple Trigger-Based CSS Animation Control
Enhance Your {css}animation with Triggers
Want to animate on click, hover, scroll, or keypress โ without writing JavaScript?
Meet Triggle โ a zero-dependency helper to trigger {css}animation classes using simple data-triggle-* attributes.
Works beautifully with {css}animation out of the box. Use it to make your animations interactive in seconds.

๐ Get Started with Triggle โ
Accessibility: Respecting User Preferences
{css}animation is built with accessibility in mind. If a user has enabled prefers-reduced-motion: reduce` in their system preferences, all animations are automatically disabled, ensuring a smoother and more comfortable experience for those sensitive to motion.