MIT License

项目介绍

codse/animata 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 3.0k 个 Star、244 次 Fork。

仓库全名
codse/animata
开源许可证
MIT License
Star 数
3.0k
Fork 数
244
未关闭 Issue
3

README 摘要

Handcrafted ✍️ interaction animations and visual effects sourced from across the internet 🛜, ready for you to copy and paste into your project seamlessly. Built with Table of Contents 1. Introduction What is Animata? What is not Animata? 2. Getting Started Requirements Setup Instructions Folder Structure (Recommended) Install Dependencies Create Utility Functions 3. Contributing 4. Authors 5. License Introduction…

完整内容见 GitHub 原始 README 或本页 。

常见问题

animata 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 3.0k 个 Star。

animata 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 animata 的源码?

可以直接克隆仓库:git clone https://github.com/codse/animata.git,默认分支为 main;安装与运行步骤见仓库 README。

animata 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 3 个未关闭 Issue;Star 数为 3.0k,可作为社区活跃度的参考。

README


Table of Contents

  1. Introduction
  2. Getting Started
  3. Contributing
  4. Authors
  5. 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

/
  /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.

评论

暂无评论