Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 549 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 549 Bytes

AOS + Next.js + TypeScript Template

Getting Started

Clone and Run

npm install

Without Clone Steps

  1. Install AOS:
npm install aos
  1. Import AOS in your page.tsx:
import AOS from "aos";
import "aos/dist/aos.css";
  1. Initialize AOS in useEffect:
useEffect(() => {
  AOS.init({ duration: 1000 });
}, []);
  1. Add AOS to your elements:
<div data-aos="fade-up">
  {/* Content */}
</div>

More : https://michalsnik.github.io/aos/