Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

I recorded a 14-min tutorial on how I created this Scroll-based Animatd landing page. ❤️‍🔥Full Step-by-step tutorial, save it for later!

58,337 Aufrufe • vor 6 Monaten •via X (Twitter)

27 Kommentare

Profilbild von tagee
tageevor 6 Monaten

Roughly, the idea is: 1. Images from Freepik 2. Video via Kling 3. Break it into frames (ezgif) 4. Vibe coding with Antigravity --- Prompt: Cinematic Scrolltelling with Canvas & GSAP Goal: Create a cinematic "Scrolltelling" effect in a React (TypeScript) application. The core idea is to play an image sequence (video frames) based on the user's scroll position, creating a high-performance video-like illusion controlled entirely by the mouse wheel. Technical Stack: Framework: React (TypeScript) Styling: Tailwind CSS Rendering: HTML5 <canvas> Animation: GSAP (with ScrollToPlugin) Detailed Requirements: Frame Preloading & Loading State:Preload a sequence of 180 images (e.g., frame-001.jpg to frame-180.jpg) into a memory array before rendering starts. Implement a "Loading Screen" overlay that displays the real-time percentage of loaded frames. Canvas Rendering Logic:Use a fullscreen <canvas> element (fixed inset-0 w-full h-full). Create a drawFrame(index) function to render the specific frame to the canvas. Crucial: Implement a manual object-fit: cover logic using aspect ratio math so the images always fill the screen perfectly without distortion, regardless of window size. Include a ZOOM_FACTOR variable (e.g., 1.35) in the draw calculation to slightly zoom into the frames, effectively hiding any baked-in black bars or letterboxing. Scroll-to-Frame Mapping:Set the container height to 500vh to create a long scrollable area. Listen for the scroll event and calculate a scrollFraction (0 to 1) based on window.scrollY and the maximum scrollable height. Map this fraction to the frame index (0–179) and use requestAnimationFrame to trigger drawFrame for buttery-smooth performance. Interactive Mouse Parallax:Add a mousemove event listener. Use to smoothly shift the canvas position in the opposite direction of the mouse movement to create a sense of 3D depth. Apply a CSS scale: 1.05 to the canvas to ensure that its edges never become visible during the parallax offset. Performance & UX:Ensure the canvas handles window resizing dynamically. The background should remain solid black to maintain a cinematic atmosphere. Use GSAP's ScrollToPlugin for smooth programmatic navigation (e.g., "Scroll to Top" buttons).

Profilbild von selfhost. 🇹🇭 (ノಠ益ಠ)ノ
selfhost. 🇹🇭 (ノಠ益ಠ)ノvor 6 Monaten

what the fuck is the website supposed to be promoting lmao

Profilbild von Roberto Nickson
Roberto Nicksonvor 6 Monaten

This is awesome, appreciate the game!

Profilbild von Utkarsh Singh
Utkarsh Singhvor 6 Monaten

14 minutes is a solid commitment. Can’t wait to see how you tackled the scroll animations.

Profilbild von Avinash
Avinashvor 6 Monaten

Sounds awesome! A detailed tutorial is always a win. Can't wait to check it out and level up my skills!

Profilbild von Arkhe
Arkhevor 6 Monaten

u cooked legend🔥🔥 impressive

Profilbild von Emmanuel EJ McDuffie
Emmanuel EJ McDuffievor 6 Monaten

Damn bro this rockstar shyt right here 🤟🏿

Profilbild von yuvraj
yuvrajvor 6 Monaten

Amazing. Will try this

Profilbild von Ogutuga Victor | Product Designer
Ogutuga Victor | Product Designervor 6 Monaten

Damn this is so good 👏👏

Profilbild von Kevser
Kevservor 6 Monaten

Solid execution on both the visuals and the teaching.

Profilbild von Hiroshi | Game Economy Designer
Hiroshi | Game Economy Designervor 6 Monaten

that's a fire landing🔥

Profilbild von Alp Arslan Mirasow
Alp Arslan Mirasowvor 6 Monaten

I love it

Profilbild von cham
chamvor 6 Monaten

good one

Profilbild von wahris
wahrisvor 6 Monaten

Legit🏅

Profilbild von ZerdaluWorks
ZerdaluWorksvor 5 Monaten

Thanks for the tutorial. It was really helpful. I have a question though, how do you find clients?

Profilbild von ξth.c
ξth.cvor 6 Monaten

stunning!

Profilbild von Ripplix
Ripplixvor 6 Monaten

Way this scroll-driven sequence flows through the canvas is absolute butter. The frame mapping is so clean. Insane work by @viktoroddy ⚡️

Profilbild von Hanife Keles
Hanife Kelesvor 6 Monaten

This Looks amazing

Profilbild von Speedy
Speedyvor 6 Monaten

Nice work and thank you for sharing

Profilbild von ernesto.design
ernesto.designvor 6 Monaten

😎

Profilbild von iflah olmaz optimist
iflah olmaz optimistvor 6 Monaten

Really nice!

Profilbild von Manuel Arias
Manuel Ariasvor 6 Monaten

thank you!!!

Profilbild von Q.Young
Q.Youngvor 6 Monaten

Awesome! Save it for later!

Profilbild von tagee
tageevor 6 Monaten

Thanks a lot! I went through it a few times and learned a ton

Profilbild von shaquille o'atmeal
shaquille o'atmealvor 6 Monaten

whats the font in the beginning

Profilbild von Luke
Lukevor 6 Monaten

Love this tutorial, thanks for sharing it!

Profilbild von Gsv
Gsvvor 6 Monaten

The prompt is blurry on my side ,can anyone please just write it here or send a clear screenshot -thanks in advance 🙏🙏

Ähnliche Videos