Hey everyone π
I recently built and open-sourced a Svelte 5 + GSAP template focused on creating modern, animated landing pages (Awwwards-style).
π GitHub: https://github.com/YusufCeng1z/svelte-gsap-template
β¨ Why I built this
While working with Svelte, I noticed that integrating GSAP can get messy:
- You need to manually bind DOM elements
- Run animations inside
onMount - Handle cleanup yourself
Even though GSAP is powerful, the setup friction is real.
So I wanted to create a clean starter template that already includes:
- Smooth scroll experience
- Scroll-triggered animations
- Reusable animation patterns
- Modern UI structure
βοΈ Tech Stack
- Svelte 5 (Runes)
- GSAP (ScrollTrigger, timelines)
- Tailwind CSS v4
- Optional: Lenis for smooth scrolling
π¬ Features
- β‘ Smooth scrolling experience
- π― Scroll-triggered animations
- π§± Sticky & layered sections
- π Glassmorphism UI elements
- π± Fully responsive design
- π Dark mode ready
- π Pre-rendered & fast
π§ Key Idea
Instead of scattering GSAP logic everywhere, the template:
- Keeps animations structured and reusable
- Makes it easier to scale animation-heavy UIs
- Reduces boilerplate for every new project
πΈ Use Cases
- Portfolio websites
- Creative agency landing pages
- Product showcases
- Experimental UI projects
π§© Why GSAP with Svelte?
Svelte has built-in animations, but:
- Theyβre great for simple transitions
- GSAP shines for complex timelines & scroll effects
This template tries to combine the best of both worlds.
π¬ Feedback
This is still evolving, so feedback is super welcome π
If you find bugs, have ideas, or want improvements β feel free to open an issue or PR.
β If you like it, consider starring the repo!
Thanks!
Top comments (0)