Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 7 ay önce •via X (Twitter)

27 Yorum

tagee profil fotoğrafı
tagee7 ay önce

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).

selfhost. 🇹🇭 (ノಠ益ಠ)ノ profil fotoğrafı
selfhost. 🇹🇭 (ノಠ益ಠ)ノ7 ay önce

what the fuck is the website supposed to be promoting lmao

Roberto Nickson profil fotoğrafı
Roberto Nickson7 ay önce

This is awesome, appreciate the game!

Utkarsh Singh profil fotoğrafı
Utkarsh Singh7 ay önce

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

Avinash profil fotoğrafı
Avinash7 ay önce

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

Arkhe profil fotoğrafı
Arkhe7 ay önce

u cooked legend🔥🔥 impressive

Emmanuel EJ McDuffie profil fotoğrafı
Emmanuel EJ McDuffie7 ay önce

Damn bro this rockstar shyt right here 🤟🏿

yuvraj profil fotoğrafı
yuvraj7 ay önce

Amazing. Will try this

Ogutuga Victor | Product Designer profil fotoğrafı
Ogutuga Victor | Product Designer7 ay önce

Damn this is so good 👏👏

Kevser profil fotoğrafı
Kevser7 ay önce

Solid execution on both the visuals and the teaching.

Hiroshi | Game Economy Designer profil fotoğrafı
Hiroshi | Game Economy Designer6 ay önce

that's a fire landing🔥

Alp Arslan Mirasow profil fotoğrafı
Alp Arslan Mirasow7 ay önce

I love it

cham profil fotoğrafı
cham7 ay önce

good one

wahris profil fotoğrafı
wahris7 ay önce

Legit🏅

ZerdaluWorks profil fotoğrafı
ZerdaluWorks6 ay önce

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

ξth.c profil fotoğrafı
ξth.c7 ay önce

stunning!

Ripplix profil fotoğrafı
Ripplix7 ay önce

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

Hanife Keles profil fotoğrafı
Hanife Keles7 ay önce

This Looks amazing

Speedy profil fotoğrafı
Speedy7 ay önce

Nice work and thank you for sharing

ernesto.design profil fotoğrafı
ernesto.design7 ay önce

😎

iflah olmaz optimist profil fotoğrafı
iflah olmaz optimist7 ay önce

Really nice!

Manuel Arias profil fotoğrafı
Manuel Arias7 ay önce

thank you!!!

Q.Young profil fotoğrafı
Q.Young7 ay önce

Awesome! Save it for later!

tagee profil fotoğrafı
tagee7 ay önce

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

shaquille o'atmeal profil fotoğrafı
shaquille o'atmeal7 ay önce

whats the font in the beginning

Luke profil fotoğrafı
Luke7 ay önce

Love this tutorial, thanks for sharing it!

Gsv profil fotoğrafı
Gsv7 ay önce

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

Benzer Videolar