awesome-reveal/awesome-reveal
소개
IntersectionObserver와 Web Animations API를 기반으로 React, Vue, Astro 및 순수 JavaScript에서 사용할 수 있는 스크롤 시 표시 애니메이션
웹 및 앱 개발측정된 스타 증가
- in 24h
- +1
- in 7 days
- +13
- in 15 days
- +14
- in 1 month
- +15
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalawesome-reveal
Reveal-on-scroll animations for React, Vue, Svelte, Astro and plain JavaScript. Content fades and slides in when it enters the viewport. Visit awesome-reveal.dev.

- Simple. One component, or one function call, and a few options.
- Native. Built on the Intersection Observer API and the Web Animations API. The core is less than 2 kB gzipped.
- No flash. The framework packages hide server-rendered content until it reveals. If the script fails, the content shows after 5 seconds.
- Accessible. Obeys the reduced-motion preference, and shows waiting content on focus and in print.
- CSP-friendly. Writes no inline styles and no inline scripts.
Packages
Install the package for your framework. Each README documents its API.
| Framework | Package | Version |
|---|---|---|
| React | @awesome-reveal/react |
|
| Vue | @awesome-reveal/vue |
|
| Svelte | @awesome-reveal/svelte |
|
| Astro | @awesome-reveal/astro |
|
| JavaScript | @awesome-reveal/core |
|
| React (v4 users) | react-awesome-reveal |
Version 5 of react-awesome-reveal re-exports @awesome-reveal/react for v4 users. To upgrade, read Migrate from v4.
Quick start
React:
import { Reveal } from "@awesome-reveal/react";
export const Hero = () => <Reveal from="left">Hello</Reveal>;
Vue:
<script setup lang="ts">
import { Reveal, vReveal } from "@awesome-reveal/vue";
</script>
<template>
<Reveal from="left">Hello</Reveal>
<p v-reveal="{ from: { opacity: 0 } }">Fade only</p>
</template>
Svelte:
<script lang="ts">
import { Reveal, reveal } from "@awesome-reveal/svelte";
</script>
<Reveal from="left">Hello</Reveal>
<p {@attach reveal(() => ({ from: { opacity: 0 } }))}>Fade only</p>
Astro:
---
import { Reveal } from "@awesome-reveal/astro";
---
<Reveal from="left">Hello</Reveal>
JavaScript:
import { cascade, reveal } from "@awesome-reveal/core";
reveal(".card", { from: "left" });
cascade(".features", { interval: 80 });
In most setups, you do not import a stylesheet. The README of each package gives the exceptions, such as an Astro island.
Examples
The examples folder has a small app for React, Vue, Svelte, Astro and Next.js.
Browser support
Core needs Chrome 104, Edge 104, Firefox 74 or Safari 14.1 (iOS 14.5), or later. Your framework and your bundler target can need more. Read Browser support in the core README. If IntersectionObserver or the Web Animations API is not available, the content shows immediately and does not stay hidden.
Agent skills
The packages include agent skills that teach a coding agent the API. pnpm can link them into your project after you approve them. Each package README gives the names of its skills.
Contributing
Open pull requests against the main branch. Read CONTRIBUTING.md to set up the workspace. AGENTS.md lists the commands for the build, the tests and the lint.
Support
- Report a bug in the issue tracker.
- Use Discussions to ask a question or to suggest a feature.
- If awesome-reveal helps you, star the repository or support its creator.
License
관련 프로젝트 살펴보기
불러오는 중…