Skip to content

TheMIU/aos-starter-nextjs-typescript

Repository files navigation

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/

Releases

No releases published

Packages

No packages published