Skip to content

Repository files navigation

React AnimeJS — Docs & Demos

npm version npm downloads license: MIT live demo GitHub stars last commit

TanStack Start Vite Tailwind CSS v4 TypeScript Anime.js v4 React 19

The documentation site and component gallery for @shakibdshy/react-animejs — a comprehensive React wrapper for Anime.js v4.

🌐 Live site: react-animejs.vercel.app

This repo contains the marketing landing page, interactive component gallery, API reference docs, and the "blocks" showcase — all powered by the published @shakibdshy/react-animejs package. The library itself lives in a separate package (see Relationship to the package below).

✨ What's in this repo

Folder Purpose
src/landing Marketing landing page (hero, features, code showcase, CTA)
src/component-gallery Interactive gallery of every hook & component, with live previews and code
src/blocks Self-contained "blocks" — larger animation patterns (scroll reveals, grids, cursors, morphs)
src/demo-examples Individual example components backing the gallery detail pages
src/docs API reference data + docs page (hooks, components, presets, stagger helpers)
src/routes TanStack file-based routes (/, /demos, /demos/:slug, /blocks, /docs)
src/theme Light/dark theme system

🚀 Getting started

Prerequisites

  • Node.js >=18
  • pnpm >=10 (npm i -g pnpm)

Install & run

pnpm install
pnpm dev

The dev server starts on http://localhost:3002.

Scripts

Command Description
pnpm dev Start the Vite dev server (port 3002)
pnpm build Production build (outputs to .output/ via Nitro)
pnpm preview Preview the production build locally
pnpm test Run the Vitest test suite
pnpm typecheck TypeScript type checking (tsc --noEmit)
pnpm lint Lint with ESLint
pnpm format Format with Prettier

🛠 Tech stack

Relationship to the package

This repo is the docs & demos site. The animation library itself is a separate npm package, @shakibdshy/react-animejs, which is published to the npm registry only (its source is not in this repo).

This repo The package
What Docs site & component gallery (deployed to Vercel) The reusable animation library
npm (not published — private: true) @shakibdshy/react-animejs
Source on GitHub ✅ This repo ❌ npm-only
Relationship Consumes the package Independent

The demo installs the package from the npm registry like any other consumer:

"dependencies": {
  "@shakibdshy/react-animejs": "^1.0.0"
}

Note on the repository field: the package's npm repository link points to this repo (github.com/shakibdshy/react-animejs) as the project's public home, even though the library source itself lives only on npm. This is intentional — this repo is where issues, the live demo, and project context live.

📁 Project structure

src/
├── landing/              # Marketing page sections
├── component-gallery/    # Interactive gallery (the /demos routes)
├── blocks/               # Larger showcase blocks (the /blocks route)
├── demo-examples/        # Example components for gallery detail pages
├── docs/                 # API reference (the /docs route)
├── routes/               # TanStack file-based routes
├── theme/                # Theme provider + system
├── lib/                  # Demo utilities (cn() class-merge helper)
└── styles.css            # Global styles

🚢 Deployment

The site auto-deploys to Vercel on push to main. Vercel runs pnpm build (Vite + Nitro) and serves the .output/ directory.

License

MIT © Shakib

About

A comprehensive React wrapper for Anime.js v4 — hooks-first API with declarative components, presets, and scoped animations.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages