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

universal-animation-library

v1.0.0

Published

Universal Animation Library - A comprehensive CSS animation library with 105+ animations across 7 versions

Readme

Universal Animation Library

NPM Version License: MIT Downloads Bundle Size

🎨 105+ 精心设计的 CSS 动画效果

在线演示 · GitHub · 文档

✨ 特性

  • 🎨 105+ 动画效果 - 从基础到终极的完整动画库
  • 🚀 7 个版本系列 - V1 基础到 V7 终极的渐进式学习路径
  • 💪 零依赖 - 纯 CSS 实现,即插即用
  • 📱 响应式设计 - 适配各种屏幕尺寸
  • 🎯 易于使用 - 简洁的 API,只需添加 class
  • 🔧 高度可定制 - 支持自定义时长、缓动函数等
  • 🌐 浏览器兼容 - 支持 Chrome 87+、Firefox 78+、Safari 14+、Edge 88+
  • 📦 模块化导入 - 可按需导入特定版本

📦 安装

npm install universal-animation-library

或使用其他包管理器:

yarn add universal-animation-library
pnpm add universal-animation-library

🚀 快速开始

方式 1: 导入完整库(所有 105+ 动画)

@import 'universal-animation-library';

方式 2: 导入特定版本

/* V1 基础系列 (18 动画) */
@import 'universal-animation-library/dist/v1.css';

/* V2 超级动画 (15 动画) */
@import 'universal-animation-library/dist/v2.css';

/* V3 超现实动画 (14 动画) */
@import 'universal-animation-library/dist/v3.css';

/* V4 创意互动 (18 动画) */
@import 'universal-animation-library/dist/v4.css';

/* V5 极限突破 (10 动画) */
@import 'universal-animation-library/dist/v5.css';

/* V6 传奇动画 (12 动画) */
@import 'universal-animation-library/dist/v6.css';

/* V7 终极动画 (16 动画) */
@import 'universal-animation-library/dist/v7.css';

方式 3: 轻量版(仅 V1)

@import 'universal-animation-library/dist/index.lite.css';

💻 使用示例

V1 基础动画

<!-- 需要基础类 + 动画类 -->
<div class="ua-v1-animated ua-v1-fadeIn">淡入</div>
<div class="ua-v1-animated ua-v1-bounceIn">弹跳进入</div>
<div class="ua-v1-animated ua-v1-zoomIn">缩放进入</div>
<div class="ua-v1-animated ua-v1-rotateIn">旋转进入</div>
<div class="ua-v1-animated ua-v1-fadeInDown">从上淡入</div>

V2-V6 高级动画

<div class="ua-v2-animated ua-v2-hologram">全息投影</div>
<div class="ua-v3-animated ua-v3-wormhole">虫洞穿越</div>
<div class="ua-v4-animated ua-v4-magnetPull">磁吸进入</div>
<div class="ua-v5-animated ua-v5-extremeVortex">极限漩涡</div>
<div class="ua-v6-animated ua-v6-lightShadow">光影穿梭</div>

V7 终极动画

<!-- V7 动画不需要基础类 -->
<div class="ua-v7-liquidIn">液态进入</div>
<div class="ua-v7-crystalIn">晶体进入</div>
<div class="ua-v7-fractalIn">分形进入</div>
<div class="ua-v7-rainbowIn">彩虹绽放</div>
<div class="ua-v7-rippleIn">波纹扩散</div>

🎨 自定义配置

调整动画时长

.ua-v1-animated {
  --ua-v1-duration: 1.5s;
}

.ua-v7-liquidIn {
  --ua-v7-duration-in: 2s;
}

调整缓动函数

.ua-v1-animated {
  --ua-v1-ease-out: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ua-v7-liquidIn {
  --ua-v7-ease-physics: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

📋 可用动画列表

V1 基础系列 (18 个)

淡入淡出: fadeIn, fadeOut, fadeInDown, fadeOutDown, fadeInUp, fadeOutUp, fadeInLeft, fadeOutLeft, fadeInRight, fadeOutRight

缩放: zoomIn, zoomOut

旋转: rotateIn, rotateOut

弹跳: bounceIn, bounceOut

其他: flash, shake, pulse

V2 超级动画 (15 个)

hologram, vortexIn, sineWave, origami, orbitIn, kaleidoscope, nebulaExplosion, transformer, tidalWave, magicTransform, dnaHelix, quantumLeap, flameBurst, aurora, blackHole

V3 超现实动画 (14 个)

wormhole, hologramPro, quantumEntanglement, neuralNetwork, metaverse, vrImmersive, warpDrive, cyberpunk, galaxyVortex, nftReveal, astralProjection, timeTravel, crystalBall, bigBang

V4 创意互动 (18 个)

magnetPull, floatIn, waveIn, elasticPop, focusIn, drawIn, rotateIn, prismIn, scalePulse, gradientFadeIn, linkIn, flipIn, driftOut, shrinkOut, spiralOut, explodeOut, disintegrateOut

V5 极限突破 (10 个)

extremeVortex, morphingKaleidoscope, auroraPhantom, glassShatter, dimensionTransit, liquidMorph, particleReassemble, spiralTime, pixelCollapse, interstellar

V6 传奇动画 (12 个)

lightShadow, spaceFold, crystalFission, electromagneticStorm, quantumRipples, dimensionGate, auroraSpectrum, stardustAssembly, rainbowFission, lightningPulse, singularityExplosion, deepSpace

V7 终极动画 (16 个)

  • 液态: liquidIn, liquidOut
  • 晶体: crystalIn, crystalOut
  • 涡流: vortexIn, vortexOut
  • 光芒: rayIn, rayOut
  • 分形: fractalIn, fractalOut
  • 彩虹: rainbowIn, rainbowOut
  • 弹跳: bounceIn, bounceOut
  • 波纹: rippleIn, rippleOut

🌐 浏览器支持

| Chrome | Firefox | Safari | Edge | |--------|---------|--------|------| | >= 87 | >= 78 | >= 14 | >= 88 |

📦 包大小

  • index.css (完整版): ~330 KB
  • index.lite.css (轻量版): ~30 KB
  • v1.css: ~30 KB
  • v2.css: ~50 KB
  • v3.css: ~45 KB
  • v4.css: ~60 KB
  • v5.css: ~40 KB
  • v6.css: ~50 KB
  • v7.css: ~55 KB

🔗 相关链接

📝 许可证

MIT License

🤝 贡献

欢迎贡献!请查看 贡献指南 了解详情。


Made with ❤️ by Universal Animation Library Contributors

⭐ 如果这个项目对你有帮助,请给我们一个 Star!