MCPcopy Index your code
hub / github.com/codse/animata

github.com/codse/animata @v3.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.3.0 ↗ · + Follow
1,235 symbols 3,274 edges 596 files 7 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
Animata Logo Handcrafted ✍️ interaction animations and visual effects sourced from across the internet 🛜, ready for you to copy and paste into your project seamlessly.

Built with

Next.js React.js Tailwind Framer Motion Typescript Vercel

Table of Contents

  1. Introduction
  2. What is Animata?
  3. What is not Animata?
  4. Getting Started
  5. Requirements
  6. Setup Instructions
  7. Contributing
  8. Authors
  9. License

Introduction

What is Animata?

Welcome to Animata, a free and open-source collection of hand-crafted animations, effects, and interactions that you can seamlessly integrate into your project with a simple copy and paste. The animations are built using TailwindCSS and React.js, so they can be easily customized to fit your project's design.

What is not Animata?

Animata is not a full-fledged UI library like Material-UI or Chakra-UI. It is a collection of animations and effects that you can use to enhance your project's design. You can also use Animata alongside other UI libraries or design systems (you will need to set up TailwindCSS for this).

Getting Started

You don't need to install it as a dependency instead you can simply copy and paste the code, as shadcn/ui, into your project. However, you still need to install the other dependency that the code needs.

Requirements

Setup Instructions

Folder Structure (Recommended)

/
  /components
  /ui

where / is the root of your project, /components is where you keep your components and the project has been set up using paths in the tsconfig.json file.

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./*"]
    }
  }
}

Install Dependencies

Install the required dependencies, if you haven't already:

npm install tailwind-merge clsx lucide-react tailwindcss-animate

Add tailwindcss-animate to plugins in tailwind.config.js file:

module.exports = {
  plugins: [require("tailwindcss-animate")],
};

Create Utility Functions

Create utils.ts file in the libs folder and paste the following code:

import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

NOTE

  1. If you see something that has been imported but not mentioned in the documentation, then it is a dependency you need to install. If it starts with @/ then it is Animata's component else it is an external dependency. In such a case, you can submit a PR to update the documentation.
  2. If something is not working, the docs probably miss the tailwind.config.js updates. You can look for the entries that have been added to the tailwind.config.js in Animata's source code. You can create an issue or submit a PR to update the documentation.

Contributing

Contributions to Animata are always welcome!

  • 📥 Pull requests and 🌟 Stars are always welcome.
  • Read our contributing guide to get started, or find us on Discord, we will take the time to guide you.

Authors

Heartfelt gratitude goes to each of you for your amazing contributions to this project. Your hard work, creativity, and dedication have been nothing short of incredible. Whether it was coding, debugging, testing, or sharing ideas, every effort made a significant difference.

License

This project is licensed under the MIT License. see the LICENSE file for details.

Extension points exported contracts — how you extend this code

CSSProperties (Interface)
(no doc)
global.d.ts
NavItem (Interface)
(no doc)
types/index.ts
UnistNode (Interface)
(no doc)
types/unist.ts
DocsPagerProps (Interface)
(no doc)
components/pager.tsx
ComponentPreviewProps (Interface)
(no doc)
components/component-preview.tsx
CopyButtonProps (Interface)
(no doc)
components/copy-button.tsx
DocsShellLayoutProps (Interface)
(no doc)
components/docs-shell-layout.tsx
FrameworkDocsProps (Interface)
(no doc)
components/framework-docs.tsx

Core symbols most depended-on inside this repo

cn
called by 704
lib/utils.ts
buildKineticFrame
called by 28
animata/text/text-animator.tsx
createLinks
called by 24
config/docs.ts
TMDB_BACKDROP
called by 21
app/demo/library/browse/cinema-row.tsx
rand
called by 15
animata/background/shooting-stars.tsx
Number
called by 14
animata/text/ticker.tsx
error
called by 13
scripts/validate-registry-install.js
registerAnimation
called by 12
animata/text/text-animator.tsx

Shape

Function 988
Interface 240
Class 4
Method 2
Enum 1

Languages

TypeScript100%

Modules by API surface

animata/card/card-stack.tsx40 symbols
animata/text/text-animator.tsx36 symbols
app/demo/demo-experience.tsx29 symbols
animata/preloader/split-reveal.tsx26 symbols
scripts/build-registry.js23 symbols
scripts/build-og-images.mjs21 symbols
components/sidebar-nav.tsx16 symbols
app/demo/library/browse/cinema-row.tsx16 symbols
scripts/lib/og-template.mjs14 symbols
animata/widget/team-clock.tsx14 symbols
components/component-preview.tsx13 symbols
scripts/validate-registry-install.js11 symbols

For agents

$ claude mcp add animata \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact