An interactive, scroll-triggered product landing page for Fanta built with HTML, CSS, JavaScript, and GSAP ScrollTrigger.
This project is a vibrant, modern promotional landing page featuring dynamic, scroll-driven animations. Using GSAP and its ScrollTrigger plugin, visual assetsβincluding the main soda can, fresh orange slices, and floating leavesβfluidly translate, rotate, and resize across viewport sections as the user scrolls.
- Scroll-Linked Animations: Smooth timelines tied directly to user scroll position with scrub enabled.
- Dynamic Visual Transitions: Soda cans, fruit slices, and leaves seamlessly travel across distinct content sections.
- Multi-Brand Showcase: Interactive product comparison cards for Coca-Cola, Fanta, and Pepsi.
- Responsive Layout: Clean CSS flex/grid architecture styled to match brand aesthetics.
- HTML5: Semantic document structure.
- CSS3: Custom styling, cubic-bezier transitions, and responsive layout.
- JavaScript (ES6+): Animation logic and DOM manipulation.
βββ Assets/ # Images, logos, fruit cutouts, and can renders
βββ Fonts/ # Custom typography
βββ index.html # Webpage structure
βββ style.css # Layouts, positioning, and transitions
βββ script.js # GSAP timelines and ScrollTrigger configuration
git clone https://github.com/ajayxuns/fanta-website.git
cd fanta-websiteOpen index.html directly in any web browser.
Or run it using the Live Server extension in VS Code.
GitHub: @ajayxuns
This project is open-source and available under the MIT License.