Framer Motion Staggered Animation Triggered by Scrolling Once Into View
ฝัง
- เผยแพร่เมื่อ 25 ส.ค. 2024
- 👉 NEW React & Next.js Course: bytegrad.com/c...
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Add authentication to your app FAST: bit.ly/3QOe1Bh
👉 NEW React & Next.js Course: bytegrad.com/c...
👉 Professional JavaScript Course: bytegrad.com/c...
👉 Professional CSS Course: bytegrad.com/c...
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (BIG update soon): email.bytegrad...
⏱️ Timestamps:
0:00 Explanation
#webdevelopment #coding #programming
This was exactly what I was looking for! Animations will make my client's boring website less boring, and I keep my good contract. Thanks!
Exactly what I needed. And wasn't that far to get to the solution
thak you very much this is exactly what I wanted
thanks for this, this is what i am looking for, keep it up.
that was so cool ty for learning
I usually use the animate: { transition: { staggerChildren: 0.05 } } for the parent element and it will act like a delay for each child item.
I heard that the parent should also have animation (initial, animate) then you can use transition on it, but I don't want to animate the parent I only want to use staggerChildren ?
Yes staggerchildren may be better for most usecases but it doesnt work if you have long list of items and you paginate the list for example by simply doing list.splice(from, to) - This will stagger the first children but not for other pages... so we have to use apprach used in this video.
Quick and Easy to understand, Thanks for the video
thank you, i have implemented into my own project which has a similar map but its with images and its works great, thank you
hey man, you made my day! keep rocking with these tutorials.
thank you sir. very helpful ❤
Sir can you make a video of each animation you have in this project ? Its really amazing
he got a tutorial in his channel with a tutorial of creating this portfolio
@@alejandroyanes391 yes I find it, thank you
Thanks for the video, was very helpful
thanks man 👌👌
Thank you, was very helpful! 😁
thanks
Great video as usual. I'm stuck trying to only stagger the specific children in the viewport. Like, if they all are in the viewport they all stagger, but if on mobile there are only, say, 3 out of 10 in the viewport, only the three stagger, but resetting the delay so the last ones in the viewport aren't obnoxiously delayed.
thank you so much for that, you really helped me, and also I just wanted to say to you, that your English is really good, I mean, I know that you speak English, but I mean, you talk very clearly and easy to understand, I'm from Mexico so English is not my first language, and I struggle a little to understand this kind of videos, but with your voice, it was different man, thank you dude. Have a nice day.
source code pls
Hi, Could you please create a video on shared element transition between two pages?
One way i know is using layoutId from framer motion but i couldn't customize it
Assume page 1 has 1 image on left side and 2 page has the same image but on the right side
When navigated to page 2 from page one the image should slide to left
Please create this video, there's no video on TH-cam about it.
Thanks this was a super cool video ❤
Good idea!
Hey man very good video, also the whole project video is awesome. I have a typescript specific question. When using custom value prop you specified that it will be a number but if you go and pass it an object or an array or anything othet than a number, typescript doesn't complain why is that and how can we correct this. Also how can we make the variants typesafe so that we can get autocompletion and make less typing mistakes. Please reply! Thanks
Bro pls show this concept with bootstrap
there is a function called stagger, do you know how it works?
True, it was unclear to me so used this method