Introduction
WebFX is a production-ready animation library that brings your web interfaces to life. With over 200+ pre-built animations and a simple API, you can create stunning animations in minutes.
High Performance
Hardware-accelerated animations running at 60fps.
Lightweight
Less than 10kb gzipped. No heavy dependencies.
Responsive
Works perfectly on all devices and screen sizes.
Installation
Get started by installing the package via NPM or Yarn.
npm install webfx-motion
Or use the CDN for quick prototyping:
<script src="https://cdn.webfx.dev/motion/latest.min.js"></script>
Quick Start
Import the library and start animating elements instantly.
import { motion } from 'webfx-motion';
// Animate an element
motion.animate('.my-element', {
opacity: [0, 1],
transform: ['translateY(20px)', 'translateY(0)']
}, {
duration: 0.8,
easing: 'ease-out'
});
Basic Animations
Common animations for everyday use cases.
Fade In
Scale In
Slide Up
Rotate