https://github.com/themiu/aos-starter-nextjs-typescript
AOS Starter Template Next.js + TypeScript
https://github.com/themiu/aos-starter-nextjs-typescript
animate-on-scroll aos nextjs starter template typescript
Last synced: 3 months ago
JSON representation
AOS Starter Template Next.js + TypeScript
- Host: GitHub
- URL: https://github.com/themiu/aos-starter-nextjs-typescript
- Owner: TheMIU
- Created: 2024-07-30T11:48:02.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-30T12:42:41.000Z (about 1 year ago)
- Last Synced: 2025-06-06T22:38:32.067Z (4 months ago)
- Topics: animate-on-scroll, aos, nextjs, starter, template, typescript
- Language: TypeScript
- Homepage: https://themiu.github.io/aos-starter-nextjs-typescript/
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AOS + Next.js + TypeScript Template
## Getting Started
### Clone and Run
```bash
npm install
```### Without Clone Steps
1. **Install AOS**:
```bash
npm install aos
```2. **Import AOS in your `page.tsx`**:
```typescript
import AOS from "aos";
import "aos/dist/aos.css";
```3. **Initialize AOS in `useEffect`**:
```typescript
useEffect(() => {
AOS.init({ duration: 1000 });
}, []);
```4. **Add AOS to your elements**:
```typescript
{/* Content */}
```
---
More : https://michalsnik.github.io/aos/