Documentation v3.0

Master the Art of
Web Motion

Comprehensive guides and API references to help you build stunning, production-ready animations with WebFX.

Fast
3D
Easy

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.

Terminal
npm install webfx-motion

Or use the CDN for quick prototyping:

HTML
<script src="https://cdn.webfx.dev/motion/latest.min.js"></script>

Quick Start

Import the library and start animating elements instantly.

JavaScript
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