# bibinsivanandh25/gsap_tutorial architecture

> Architecture diagram of the GitHub repository bibinsivanandh25/gsap_tutorial, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bibinsivanandh25/gsap_tutorial
- Repository: https://github.com/bibinsivanandh25/gsap_tutorial

## Overview

This repository is a React-based GSAP workshop: a visitor opens the animation index, selects a lesson route, and views an animation example. The lessons cover to/from/fromTo tweens, timelines, staggered effects, scroll-triggered motion, and text animation. The graph shows the app entry and routing plus the lesson components’ calls into GSAP. Source excerpts support these routes and animation calls; no storage or backend workflow is evidenced.

Main entry points: [`src/App.jsx`](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/App.jsx) (Route Shell), [`src/pages/Home.jsx`](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/Home.jsx) (Lesson Index), [`src/pages/GsapTo.jsx`](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapTo.jsx) (To Tween), [`src/pages/GsapFrom.jsx`](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapFrom.jsx) (From Lesson)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Flow"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_router["Route Shell<br/>[App.jsx]"]
  node_home["Lesson Index<br/>[Home.jsx]"]
end

subgraph group_lessons["Animation Lessons"]
  node_to["To Tween<br/>[GsapTo.jsx]"]
  node_from["From Lesson<br/>[GsapFrom.jsx]"]
  node_fromto["From-To Tween<br/>[GsapFromTo.jsx]"]
  node_timeline["Timeline Lesson<br/>[GsapTimeline.jsx]"]
  node_stagger["Stagger Lesson<br/>[GsapStagger.jsx]"]
  node_scroll["Scroll Lesson"]
  node_text["Text Lesson<br/>[GsapText.jsx]"]
end

subgraph group_runtime["Animation Runtime"]
  node_gsap["GSAP Library"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_to
node_router -->|"routes to"| node_from
node_router -->|"routes to"| node_fromto
node_router -->|"routes to"| node_timeline
node_router -->|"routes to"| node_stagger
node_router -->|"routes to"| node_scroll
node_router -->|"routes to"| node_text
node_home -->|"links to"| node_to
node_home -->|"links to"| node_from
node_home -->|"links to"| node_fromto
node_home -->|"links to"| node_timeline
node_home -->|"links to"| node_stagger
node_home -->|"links to"| node_scroll
node_home -->|"links to"| node_text
node_to -->|"animates with"| node_gsap
node_from -->|"animates with"| node_gsap
node_fromto -->|"animates with"| node_gsap
node_timeline -->|"builds timeline"| node_gsap
node_stagger -->|"animates with"| node_gsap
node_scroll -->|"triggers motion"| node_gsap
node_text -->|"animates text"| node_gsap

click node_entry "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/main.jsx"
click node_router "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/App.jsx"
click node_home "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/Home.jsx"
click node_to "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapTo.jsx"
click node_from "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapFrom.jsx"
click node_fromto "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapFromTo.jsx"
click node_timeline "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapTimeline.jsx"
click node_stagger "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapStagger.jsx"
click node_scroll "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapScrollTrigger.jsx"
click node_text "https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapText.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_router,node_home toneBlue
class node_to,node_from,node_fromto,node_timeline,node_stagger,node_scroll,node_text toneAmber
class node_gsap toneMint
class node_visitor toneIndigo
```

## Components

### Application Flow

- [React Entry](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/main.jsx): `src/main.jsx`
- [Route Shell](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/App.jsx): `src/App.jsx`
- [Lesson Index](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`

### Animation Lessons

- [To Tween](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapTo.jsx): `src/pages/GsapTo.jsx`
- [From Lesson](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapFrom.jsx): `src/pages/GsapFrom.jsx`
- [From-To Tween](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapFromTo.jsx): `src/pages/GsapFromTo.jsx`
- [Timeline Lesson](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapTimeline.jsx): `src/pages/GsapTimeline.jsx`
- [Stagger Lesson](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapStagger.jsx): `src/pages/GsapStagger.jsx`
- [Scroll Lesson](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapScrollTrigger.jsx): `src/pages/GsapScrollTrigger.jsx`
- [Text Lesson](https://github.com/bibinsivanandh25/gsap_tutorial/blob/main/src/pages/GsapText.jsx): `src/pages/GsapText.jsx`

### Animation Runtime

- **GSAP Library**

### Other components

- **Visitor**

## Connections

- Visitor → React Entry: opens app (evidence: `README.md`)
- React Entry → Route Shell: renders (evidence: `src/main.jsx`)
- Route Shell → Lesson Index: routes to (evidence: `src/App.jsx`)
- Route Shell → To Tween: routes to (evidence: `src/App.jsx`)
- Route Shell → From Lesson: routes to (evidence: `src/App.jsx`)
- Route Shell → From-To Tween: routes to (evidence: `src/App.jsx`)
- Route Shell → Timeline Lesson: routes to (evidence: `src/App.jsx`)
- Route Shell → Stagger Lesson: routes to (evidence: `src/App.jsx`)
- Route Shell → Scroll Lesson: routes to (evidence: `src/App.jsx`)
- Route Shell → Text Lesson: routes to (evidence: `src/App.jsx`)
- Lesson Index → To Tween: links to (evidence: `src/pages/Home.jsx`)
- Lesson Index → From Lesson: links to (evidence: `src/pages/Home.jsx`)
- Lesson Index → From-To Tween: links to (evidence: `src/pages/Home.jsx`)
- Lesson Index → Timeline Lesson: links to (evidence: `src/pages/Home.jsx`)
- Lesson Index → Stagger Lesson: links to (evidence: `src/pages/Home.jsx`)
- Lesson Index → Scroll Lesson: links to (evidence: `src/pages/Home.jsx`)
- Lesson Index → Text Lesson: links to (evidence: `src/pages/Home.jsx`)
- To Tween → GSAP Library: animates with (evidence: `src/pages/GsapTo.jsx`)
- From Lesson → GSAP Library: animates with (evidence: `src/pages/GsapFrom.jsx`)
- From-To Tween → GSAP Library: animates with (evidence: `src/pages/GsapFromTo.jsx`)
- Timeline Lesson → GSAP Library: builds timeline (evidence: `src/pages/GsapTimeline.jsx`)
- Stagger Lesson → GSAP Library: animates with (evidence: `src/pages/GsapStagger.jsx`)
- Scroll Lesson → GSAP Library: triggers motion (evidence: `src/pages/GsapScrollTrigger.jsx`)
- Text Lesson → GSAP Library: animates text (evidence: `src/pages/GsapText.jsx`)
