npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@danilidonbeltran/simple-css-animations

v1.0.3

Published

Some simple CSS animations

Readme

Simple CSS Animations

A lightweight collection of simple, performant CSS animations for modern web applications. This library provides a comprehensive set of keyframe animations using modern CSS properties like translate, scale, and rotate for optimal performance.

Built with SCSS and compiled to a single, optimized CSS file for easy integration.

Installation

npm install @danilidonbeltran/simple-css-animations

Usage

Import the compiled CSS library

@import url("@danilidonbeltran/simple-css-animations");

Or in your HTML:

<link rel="stylesheet" href="node_modules/@danilidonbeltran/simple-css-animations/dist/index.css">

Using with build tools

If you're using a bundler like Webpack, Vite, or similar:

import '@danilidonbeltran/simple-css-animations';

Apply animations to elements

.animated-element {
  animation: bounce-in 1s ease-out;
}

.fade-element {
  animation: fade-in 0.5s ease-in-out;
}

Development

This project uses SCSS for development and compiles to a single CSS file for distribution.

Build Process

# Install dependencies
npm install

# Build the CSS from SCSS sources
npm run build

# Watch for changes during development
npm run dev

Project Structure

src/
├── index.scss           # Main entry point
├── show-animations.scss # Entrance animations
└── hide-animations.scss # Exit animations
dist/
└── index.css           # Compiled CSS (ready for production)

Available Animations

Show/Entrance Animations

Bounce Animations

  • bounce - Simple bouncing effect
  • bounce-in - Bouncing entrance with scale
  • bounce-in-left - Bounce in from the left
  • bounce-in-right - Bounce in from the right
  • bounce-in-up - Bounce in from above
  • bounce-in-down - Bounce in from below

Fade Animations

  • fade-in - Simple fade in
  • fade-in-up - Fade in while moving up
  • fade-in-down - Fade in while moving down
  • fade-in-left - Fade in while moving from left
  • fade-in-right - Fade in while moving from right

Slide Animations

  • slide-in - Generic slide in
  • slide-in-right - Slide in from the right
  • slide-in-left - Slide in from the left
  • slide-in-top - Slide in from the top
  • slide-in-bottom - Slide in from the bottom

Zoom Animations

  • zoom-in - Simple zoom in
  • zoom-in-down - Zoom in from above
  • zoom-in-up - Zoom in from below
  • zoom-in-left - Zoom in from the left
  • zoom-in-right - Zoom in from the right

Roll Animations

  • roll-in-right - Roll in from the right
  • roll-in-left - Roll in from the left

Rotation Animations

  • rotate - Simple rotation
  • rotate-in - Rotating entrance

Special Effects

  • flash - Flashing effect
  • flip - Simple flip
  • flip-in - Flipping entrance
  • heartbeat - Heartbeat pulse effect
  • jack-in-the-box - Spring-like entrance
  • light-speed-in - High-speed entrance
  • pulse - Pulsing effect
  • shake - Shaking effect
  • swing - Swinging motion
  • tada - Celebration effect
  • wobble - Wobbling motion

Hide/Exit Animations

Bounce Out Animations

  • bounce-out - Bouncing exit with scale
  • bounce-out-left - Bounce out to the left
  • bounce-out-right - Bounce out to the right
  • bounce-out-up - Bounce out upward
  • bounce-out-down - Bounce out downward

Fade Out Animations

  • fade-out - Simple fade out
  • fade-out-up - Fade out while moving up
  • fade-out-down - Fade out while moving down
  • fade-out-left - Fade out while moving left
  • fade-out-right - Fade out while moving right

Slide Out Animations

  • slide-out - Generic slide out
  • slide-out-right - Slide out to the right
  • slide-out-left - Slide out to the left
  • slide-out-top - Slide out to the top
  • slide-out-bottom - Slide out to the bottom

Zoom Out Animations

  • zoom-out - Simple zoom out
  • zoom-out-down - Zoom out downward
  • zoom-out-up - Zoom out upward
  • zoom-out-left - Zoom out to the left
  • zoom-out-right - Zoom out to the right

Roll Out Animations

  • roll-out-right - Roll out to the right
  • roll-out-left - Roll out to the left

Other Exit Effects

  • flip-out - Flipping exit
  • light-speed-out - High-speed exit
  • rotate-out - Rotating exit

Examples

Basic Usage

<div class="box" style="animation: bounce-in 1s ease-out;">
  Hello World!
</div>

Chaining Animations

.element {
  animation: fade-in 0.5s ease-in-out;
}

.element.exit {
  animation: fade-out 0.3s ease-in-out;
}

Custom Timing

.slow-bounce {
  animation: bounce-in 2s ease-out;
}

.fast-fade {
  animation: fade-in 0.2s ease-in-out;
}

Animation with Delays

.delayed-animation {
  animation: slide-in-right 0.6s ease-out 0.3s both;
}

Browser Support

These animations use modern CSS properties and are optimized for performance:

  • Uses translate, scale, and rotate for hardware acceleration
  • Compatible with all modern browsers
  • Optimized for 60fps animations

Performance Notes

  • All animations use transform properties (translate, scale, rotate) which are GPU-accelerated
  • Avoid animating layout-affecting properties for best performance
  • Consider using animation-fill-mode: both to maintain start/end states

License

ISC License - see package.json for details.

Author

Daniel J.L. Beltran

Repository

GitHub Repository