Рет қаралды 65,728
Discover how to load a 3D model and animate it based on the current user scroll.
We will be using React Three Fiber Drei helper useScroll with GSAP to have full control over our animation.
We'll also create an HTML/CSS User Interface using Tailwind that will also follow the scroll of the page.
To follow Thais on social media it's here:
Twitter
/ thayumiko
Instagram
/ madeingrae
The text version of this tutorial is available here
dev.to/wawasensei/scroll-anim...
#threejs #react #r3f
▬▬▬▬▬▬ Useful L I N K S 🔗 ▬▬▬▬▬▬
My complete course to learn React Three Fiber
lessons.wawasensei.dev/
Final Result
codesandbox.io/p/github/wass0...
Source Code
github.com/wass08/r3f-scrolli...
React Three Fiber Documentation
docs.pmnd.rs/react-three-fibe...
R3F Drei
github.com/pmndrs/drei
Create your React App With Vite
vitejs.dev/guide/
GSAP Documentation
greensock.com/docs/v3/GSAP/gs...)
TailwindCSS
tailwindcss.com/docs/installa...
If you want to dive deeper into Three.js I highly recommend you to follow Bruno Simon complete tutorial named Three.js Journey.
threejs-journey.com/
I also have a discount code just for you to get -20%
threejs-journey.xyz/join/wawa...
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 - Intro
00:45 - Project Setup
02:17 - 3D Model
02:37 - Animate onScroll
05:55 - Scroll User Interface
07:26 - Conclusion
▬▬▬▬▬▬ Support the channel 🙏 ▬▬▬▬▬▬
Become a member to get access to awesome perks:
/ @wawasensei
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
💻 The Discord Community
/ discord
📸 Instagram :
/ wawa.sensei
🎎 Facebook :
/ wawasenseiyt
🐦Twitter :
/ wawasensei
🐦TikTok :
/ wawasensei08
💻 My website :
www.wawasensei.dev
🎨 The end screen artist (aka My friend) :
/ noemie_pulido