Тёмный

Drop Down Menu - CSS Animations 

DevTips
Подписаться 353 тыс.
Просмотров 242 тыс.
50% 1

Let's look at a few different ways to animate a css drop down menu!
Follow along using the code at: codepen.io/devtips/pen/PzJqza/
- - -
This video was sponsored by the DevTips Patron Community - / devtips
Listen to Travis' Podcast - www.travandlos.com/
Get awesomeness emailed to you every thursday - travisneilson.com/notes
You should follow DevTips on Twitter - / devtipsshow

Опубликовано:

 

24 июл 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 474   
@ChadVick
@ChadVick 6 лет назад
The legend lives on! Thanks for all of the videos. A year and a half later - still a great resource! Miss you on YT, man! But at least we have the late-night IL, right! :)
@lucakiebel903
@lucakiebel903 8 лет назад
I really love this series! It's quality is the best (like always), you explain everything you do, and it's relevant to both Designers and Developers! thanks again for your great content!
@Fazal828
@Fazal828 8 лет назад
It's amazing how positive this community is, no dislikes so far! I thank you travis, for the effort you put in to make it this positive and also for the amazing and informative videos you make. :)
@FlyingUnosaur
@FlyingUnosaur 8 лет назад
You better edit the 'dislikes' part out because there are sad trolls everywhere :/
@Fazal828
@Fazal828 8 лет назад
+Diyar Baban Well thats why I said "so far" and sad trolls are gonna be sad trolls we gotta focus on the likes ;)
@Fazal828
@Fazal828 8 лет назад
+Riaan Oliver I'm actually one of the OG's...below 1000 subs was when I joined...but I just felt I needed to show appreciation :)
@OfficialDevTips
@OfficialDevTips 8 лет назад
I think one of the best things about this channel is the people that watch and engage. You all are amazing!
@siddheshdhuri
@siddheshdhuri 8 лет назад
+DevTips Which Video Editing software do You Use ?
@mayaahmed
@mayaahmed 7 лет назад
Thank you. This was one of the best tutorials I ever saw. Such fun.
@alexmachin1785
@alexmachin1785 7 лет назад
Wow i was looking for a great animations tutorial for my web design project. This is perfect, you even take time to explain some of the parts which is nice for people like me who is new to web. Keep it up.
@zacremboldt9160
@zacremboldt9160 8 лет назад
Travis, Your front-end dev videos are no doubt the best I've found on the internet. So first, a huge thank you for all the work you put into helping people like me! (also a designer interested in the world of front end dev) Question: In my specific case it makes sense to also animate the list items as they disappear. ie. after your mouse leaves the menu I'd like to have whichever one that is open, reverse the animation (or at least fade out). I'm using the CSS checkbox technique you shared in another video as my trigger for the dropdown. So when I click it closed I don't want the menu to just disappear like it is now. Thank you to anyone who might have an idea!
@OfficialDevTips
@OfficialDevTips 8 лет назад
Use transitions. They fade out. Alternatively, you have to make a design for the fadeout and trigger that somehow on mouse-out (we are talking JS here now.)
@zahlex
@zahlex 8 лет назад
Great Episode! I like watching you doing stuff without knowing exactly how it should look in the end :)
@yeaitsme6834
@yeaitsme6834 8 лет назад
As always, great tutorial Travis, you always manage to learn me new things. Didn't think about using loops yet in my CSS. Keep it up ^^
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks Hawk, glad you liked it!
@JM-oo3rb
@JM-oo3rb 2 года назад
Just the right amount of content, teaching verve and humour to make this an enjoyable learning experience.
@unknown1994ish
@unknown1994ish 8 лет назад
I'm really loving this series!
@burtonguster9795
@burtonguster9795 8 лет назад
This channel is amazing and I have learned a ton from it. Thank you, Travis!
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome Burton!
@porqme
@porqme 7 лет назад
Thanks, Travis!! Awesome as always
@ajdinmasic4842
@ajdinmasic4842 8 лет назад
Travis is back at it again!
@88puszkin
@88puszkin 8 лет назад
Travis amazing episode, thanks a lot that you show basic css and html for me it is very important :) Good luck.
@OfficialDevTips
@OfficialDevTips 8 лет назад
Oh, you are welcome!! I'm glad it's helpful!!
@omartarek6441
@omartarek6441 7 лет назад
Ok I just found out about this channel, and I am absolutely amazed of course, my question is, is there any SASS courses made by Travis around? And what other playlists should I watch?
@xtinafighter3381
@xtinafighter3381 8 лет назад
Thank you for all you do Travis. Don't forget about us when you become big
@tarloktarlok
@tarloktarlok 8 лет назад
I do talk to myself when I program.
@vinaykotturi1283
@vinaykotturi1283 8 лет назад
Great video Travis.
@Emadmohamad
@Emadmohamad 8 лет назад
Loved it as usual. Great work!! Just want to share something with your viewers here. One good practice - IMHO - for drop down menus is to make them open on Click and not on Hover. I am sure Travis did it this way for the purpose of showing the animation because it is quicker this way. When a user hovers over a menu and suddenly get slammed by a long list of items, it is quite an annoying experience for most people and the user feels they need to make a decision right away. Moving to the item they want to click on is quite a pain because they might accidently move out of the menu list and lose the whole thing. Frustrating. That's why many people prefer to make the menu show on click and only click. Now the user can click on it, take their time to see what's in there, easily select an item from the list or painlessly click away to close the menu.
@SanilJadhav711
@SanilJadhav711 2 года назад
That's actually really good information, thanks a lot
@VankataKisyov
@VankataKisyov 7 лет назад
Fantastic video. Thanks for the effort and the ideas!
@ILTECHS
@ILTECHS 6 лет назад
Awesome work bro!
@sam.kendrick
@sam.kendrick 6 лет назад
Thanks again for your time and effort. You're a great help. Awesome teacher!
@Nickrgamer
@Nickrgamer 6 лет назад
I got left out. There's a lot to learn in web development now. This is a great video! Thank you for making this.
@jk0r
@jk0r 8 лет назад
Amazing stuff, as always!
@luboskrsiak
@luboskrsiak 7 лет назад
You are great man. Can not stop watching your tutorials..
@giladaminoff6253
@giladaminoff6253 8 лет назад
Best navbar tutorial ever!!! keep on with your awesome videos!
@bFix
@bFix 8 лет назад
one comment about: (300ms * $i) - 300 you could've written this instead ;) : 300ms * ($i - 1) this way it would resolve correctly even when you change the ms you wrote (150ms * $i) - 300, which resolves to -150ms delay for $i = 1 which probably doesn't make sense anyway great tutorial, thx for sharing I definitely learned something new today :)
@popaandrei2112
@popaandrei2112 7 лет назад
isn't 300*0 equal to 0?XD
@Taddipargroup
@Taddipargroup 6 лет назад
Do you Have all animation with code then please send same code in video please request you
@mehdiyahiacherif2326
@mehdiyahiacherif2326 5 лет назад
@@popaandrei2112 yes we wanted the 1st one to be 0 ms bro a little bit late i know XD
@asencme
@asencme 8 лет назад
Dude c'mon, WebTech schools are going to go broke because of you xD
@daristotell
@daristotell 8 лет назад
if you mean about paid ones... yes... but what about telerik? cant be broken
@asencme
@asencme 8 лет назад
Телерик не е каквото беше...за жалост.
@daristotell
@daristotell 8 лет назад
в какъв смисъл - може ли да обясниш че съм от младото поколение
@pplayer666
@pplayer666 7 лет назад
Bulgarian is too funny ;)
@daristotell
@daristotell 7 лет назад
..... what dou mean
@chanchalbahirat3661
@chanchalbahirat3661 6 лет назад
You are really amazing. Learning a lot from you instead of searching from web.
@emmanuelcudjoe305
@emmanuelcudjoe305 6 лет назад
Great stuff. Videos like this are going to be relevant for years.
@Frank004
@Frank004 8 лет назад
thank you for your time! and good tips from Puerto Rico
@DiegoJaraPalomino
@DiegoJaraPalomino 8 лет назад
Just when I needed. btw your "123456" was hilarious
@vm-dev
@vm-dev 8 лет назад
Awesome Travis, keep on with these videos, found there great inspiration. :)
@OfficialDevTips
@OfficialDevTips 8 лет назад
Great!! Thanks!!
@shannonmyers4972
@shannonmyers4972 8 лет назад
We should make a compilation of all of the intro segments lol Besides that, amazing video! Made me realize that I have never really touched the transform property before. XD
@normandubois_design
@normandubois_design 8 лет назад
Pretty cool video! Thanks Travis! :)
@Waqas4hmed
@Waqas4hmed 8 лет назад
Lovely! What a right time to bring up this video :D Thanks travis
@OfficialDevTips
@OfficialDevTips 8 лет назад
Fantastic! Glad it helped :)
@joanricart3622
@joanricart3622 8 лет назад
Thanks for your videos Travis. I recently got a part-time job as a front end developer, and you helped me A LOT in this field! I will consider for sure the Patron thing when I make more cash! Love you from Barcelona!! (edit: btw Trav, SIX is pronounced SEIS, not SIES lol!)
@OfficialDevTips
@OfficialDevTips 8 лет назад
Hello Barcelona!! Oh, Thanks!! I'll remember that :)
@TheLollercaster
@TheLollercaster 7 лет назад
holy shit! that's amazing! thanks for sharing Travis! :)
@sinanoztop328
@sinanoztop328 8 лет назад
This is a great lesson. Thank you.
@stennick1237
@stennick1237 8 лет назад
Again, glad to see your lessons!)
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks Sten!
@llermz
@llermz 7 лет назад
came here for a drop down menu video, subscribed due to great greeting, man i love the internet
@MegaKami78
@MegaKami78 5 лет назад
THINK YOU SOO MUSH MISTER TRAVIS..very nice tut..
@mauritsweenink9210
@mauritsweenink9210 7 лет назад
Cool video! Bu do you have for each page a different css file?
@codefriendly3806
@codefriendly3806 8 лет назад
Thanks alot again!! this channel really helps me!!
@mugume
@mugume 6 лет назад
Great videos. Thanks for sharing!
@jeezmcalle
@jeezmcalle 7 лет назад
Pretty amazing! The only problem I see is how can we do it if the amount of submenu > li is dynamic?
@matankoriat3775
@matankoriat3775 8 лет назад
Travis you inspire me every time with your videos... Tnx a lot my friend!!
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome. I'm so happy to hear that!
@bennis9283
@bennis9283 8 лет назад
Awesome Video as always Travis :)
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks Benni!
@stewy387
@stewy387 8 лет назад
OMG I love you!!! Amazing Episode!!
@h.m6619
@h.m6619 6 лет назад
This is amazing man...
@shahidumar6797
@shahidumar6797 7 лет назад
thanks man its amazing
@harouttatarian3255
@harouttatarian3255 7 лет назад
Great content helped a lot thank you!
@clementidemudo6006
@clementidemudo6006 2 года назад
I really like your lessons, it doesn't only teach the subject matter, I can also help someone swing out from moody state
@ahmedkhaled1068
@ahmedkhaled1068 8 лет назад
This is just pure AWESOMENESS!
@OfficialDevTips
@OfficialDevTips 8 лет назад
Glad you like it!
@sorrefly
@sorrefly 8 лет назад
Probably the best developer on youtube! I'm really grateful for every video you upload. I've been following you for an year or more I don't have much but i was wondering if i could donate you some money to thank you
@OfficialDevTips
@OfficialDevTips 8 лет назад
Hey Sorrefly, thanks for the comment! You can go to patreon.com/devtips to learn more about donating :)
@MrRedhawk16
@MrRedhawk16 8 лет назад
That was sick man , Great Work !
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks Redhawk!
@MrRedhawk16
@MrRedhawk16 8 лет назад
+DevTips Bless man
@MrRedhawk16
@MrRedhawk16 8 лет назад
+DevTips Need some help I know this might be against the purpose of your present series but can you please do a tut on sprite sheets espeacially creating them from scratch in Adobe illustrator specifically , Many tuts have it in photoshop and i don't use it , I can draw and animate with keyframes I've been successful there in creating the sprite but in terms of targeting the desired IMG this is the struggle for me would like to have better load times and get away from so much individual img's ,So please help me being following you for a while also searched many times through your playlist and channels and nothing on spritesheets. Have a productive day but don't forget my request ok peace.
@LouisBurkhardt
@LouisBurkhardt 5 лет назад
It takes great tenācity to pronounce opācity! You are a pro at instructional videos. I think the code pit Sass may have changed since you made this because I couldn't view compiled CSS when I carefully copied your text for the first animation effect. All that said, thank you for the quality video.
@SansP3ur
@SansP3ur 7 лет назад
The anims didn't work for me. No fault of Travis' because Pug has made some changes since this tutorial was posted. Anyway, If you're running into the same issue. Dylan Stark over at StackOverflow showed me how to fix it. Use this piece of Pug syntax instead of what's shown in the tutorial: ul(class="drop-menu menu-" + i)
@apolloobado8639
@apolloobado8639 7 лет назад
me too
@jamescross4050
@jamescross4050 7 лет назад
Thank you!
@SkyViperDuck
@SkyViperDuck 7 лет назад
Thanks :)
@tommoritz79
@tommoritz79 7 лет назад
You replace which lane by this one ? :)
@feeaven
@feeaven 7 лет назад
Thanks !
@DanielPersson
@DanielPersson 8 лет назад
Hi Travis. I love the playful style you present techniques and I'll try to emulate that in my videos. When I do css I usually have trouble to find which effect goes well together. This video gave me some interesting ideas to play with. I notice that you have very crisp sound in your video. I have a hard time creating good sound. I'm hiding it a bit by music. But with the "high" quality mic (blueball) I should get a better result. Do you use any filters to get your sound to the next level? best regards Daniel
@OfficialDevTips
@OfficialDevTips 8 лет назад
I use a blue spark digital. I don't use any filtering, although it would probably sound better if i did. lol. I don't think I would consider a blueball a high quality mic. My mic is on the low end of the good quality spectrum.
@DanielPersson
@DanielPersson 8 лет назад
DevTips Hi again. Your right it's not high end but a huge improvement from my headset mic I used earlier. But thanks for your response. I'll look into noise canceling the room and perhaps change mic in the future if I'll keep my series up. :)
@mamounmokni6814
@mamounmokni6814 8 лет назад
thx travis !! u are a great educator
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks Mamoun :)
8 лет назад
i didnt notice those numbers were in spanish till you said it. ;) Greetings from Venezuela
@AijazKhan
@AijazKhan 8 лет назад
Are you kidding me?! I couldn't imagine doing that even with jquery, you handled it with CSS3. I didn't realize css3 is so powerful until I saw this video! Two thumbs up!
@OfficialDevTips
@OfficialDevTips 8 лет назад
Dude. CSS is super powerful.
@yassinebouaddi8211
@yassinebouaddi8211 6 лет назад
Great Sass style for your vids presentation delivery!
@hasratsabit7116
@hasratsabit7116 8 лет назад
I am thinking about those who dislike these videos. There must be something really wrong with these people. I feel bad for them. Thank you Travis for the amazing work that you are doing.
@OfficialDevTips
@OfficialDevTips 8 лет назад
I don't look at the likes/dislikes at all. Haters gonna hate. I'm just going to make videos for people who like them.
@sarmarketing1773
@sarmarketing1773 7 лет назад
Thoughtful video thank you
@yogeshmahale9251
@yogeshmahale9251 7 лет назад
Very Nice work..
@ericr.3216
@ericr.3216 8 лет назад
This is the way...You Are The Best Travis!!!
@OfficialDevTips
@OfficialDevTips 8 лет назад
pssshhhhhh!! You are too nice :)
@davejs
@davejs 8 лет назад
Nice animations! I'm thinking it would be more efficient to have only the changing property in the for loop. That way you're not repeating the same thing several times when the properties are processed by sass, making a much smaller file size. That would only matter for deploying an actual website. I'm guessing you wanted to keep it simple for beginners though. :) I mostly watch DevTips now to listen to your jokes haha, and also to observe your thought process as a designer. I hope to see more vlogs soon, they're my favorite! Keep on hacking, Travis!
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks David, this is great input. I'm thinking a lot lately about the future of DevTips :)
@davejs
@davejs 8 лет назад
Maybe you've done this already, but it would be good if you stepped back and asked yourself: What does DevTips look like in 1 year, 5 years, 10 years, 20 years, 50 years (if you're feeling imaginative)? Do you want other people to make videos for DevTips regularly? There's dozens of other good questions to ask yourself around this. When thinking about the future, I find that the path forward is usually lit by deep introspective thinking. :)
@ruslanbiletskyi5191
@ruslanbiletskyi5191 7 лет назад
You are very COOL man, your videos are amazing!!!!!!
@folf
@folf 8 лет назад
Wow! I can't believe how useful CSS really is!
@pedroalves2351
@pedroalves2351 5 лет назад
Awesome tutorial! Is there any way to make the dropdown fold back when the mouse move away?
@pankajshah7419
@pankajshah7419 8 лет назад
thank you Traivs is wonderful to watch this video and its very helpful .
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome!
@TheAttilaHen
@TheAttilaHen 8 лет назад
Good stuff Travis! I wish you had shown how to animate the hiding part as well since just animating half of it kind of makes it look half done in my opinion.
@OfficialDevTips
@OfficialDevTips 8 лет назад
You could do a transition out. But animations don't animate on mouse-off. You'd have to use JS or something like that.
@TheAttilaHen
@TheAttilaHen 8 лет назад
Ah ok, thanks for the reply!
@CodyeWatson
@CodyeWatson 7 лет назад
Hear a pop sound in 1... 2... 3... - 7:30. Great video Travis.
@desert6120
@desert6120 8 лет назад
Hi Travis, I Like it Man. Infect I Like all your videos so, Before i start watching your video I press Like button first. I always talk to my self when i code or design anything. Thank you again for you Awesome Videos.
@ieatwebsites
@ieatwebsites 8 лет назад
Awesomenesss!!
@onecourse3968
@onecourse3968 7 лет назад
You are funny and a Good Teacher .Really!!
@harshitnahar7028
@harshitnahar7028 5 лет назад
mannnnnnnnn!!!!! i loved ur work.. love ur humour man..(dont mind my spellings tho XD)
@marks3208
@marks3208 7 лет назад
You are my hero!
@oscareliceballosavila9860
@oscareliceballosavila9860 7 лет назад
hahaha great tutorial man!!! you need more spanish classes hahaha but all good!!! thank you ! you support me so much with your tutorials
@andrewvalenzuela1790
@andrewvalenzuela1790 7 лет назад
This guy's the digital ages Bob Ross. I hope he has pet squirrels.
@JuanMoisesTorrijos
@JuanMoisesTorrijos 8 лет назад
So nice!!!
@deserteagleto2780
@deserteagleto2780 8 лет назад
Awesome!
@mustafadag7467
@mustafadag7467 2 года назад
realy prety. I love this. Thanks man.
@proultra6088
@proultra6088 6 лет назад
thank you a lot, man
@claudiobaiardi7170
@claudiobaiardi7170 6 лет назад
Really cool series! I have a question, how can i do to make the same effect (in reverse) when the mouse leaves? Is there any way to do this css? Thanks!
@adeleyeadeteloye5624
@adeleyeadeteloye5624 6 лет назад
You can try using jQuery, and target the mouseenter and mouseleave event and add and remove the respective animated class. A trier though
@jigarlodaya668
@jigarlodaya668 7 лет назад
+DevTips What is the Font you are using on code pen example when you write () it looks like o. Thanks for spreading your knowledge
@imanmoodi3696
@imanmoodi3696 5 лет назад
thank you its very helpful for me.
@msk5010
@msk5010 8 лет назад
amazing video , helpt alot ^^ thanks
@ificouldfly4874
@ificouldfly4874 7 лет назад
Wow men! Nice video
@ipolaris5744
@ipolaris5744 7 лет назад
i followed all the steps but still dont get the same output . can someone upload the html and css file here? TIA
@chopraaakash7
@chopraaakash7 7 лет назад
Nice Work Man...
@OfficialDevTips
@OfficialDevTips 7 лет назад
Thank you!
@ROHANPATILrohan
@ROHANPATILrohan 8 лет назад
coolio Travis ...!!! #TheBestTravis ...keep posting such awesome videos...learning a lot from you ...:)
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks for letting me know Rohan!
@RyanJohnson
@RyanJohnson 7 лет назад
Too much fun buddy :)
@tim_arterbury
@tim_arterbury 8 лет назад
Holy crap them animations be dope
@bartoshleurc4892
@bartoshleurc4892 7 лет назад
This was awesome :)
@roach_iam
@roach_iam 8 лет назад
Ohhh that's very OPACK :D :D Best line ever
@madsfaerch
@madsfaerch 8 лет назад
Nice video :) Question: Any reason you keep the units on your transform where the function values are zero? My math knowledge tells me that units don't matter when the value is zero, so I usually write transform values of zero without units. E.g. transform: translateX(0) as apposed to to transform: translateX(0px). Thanks!
@murtazakaryanawala1269
@murtazakaryanawala1269 7 лет назад
i really liked this video. Super cool.
@senhorsulaiman5341
@senhorsulaiman5341 8 лет назад
This is beautiful loved it . How does the transform origin make difference..:)
Далее
Notifications, Alerts, Menus - CSS Animations
39:13
Просмотров 108 тыс.
Spinners, Loaders, and Junk - CSS Animations
52:50
Просмотров 152 тыс.
I Built 100 Homes And Gave Them Away!
09:36
Просмотров 42 млн
Discovering the CSS Perspective Property
10:29
Просмотров 76 тыс.
CSS Transition (CSS Animations Series Part 1)
27:29
Просмотров 556 тыс.
How to make shapes with CSS
18:35
Просмотров 347 тыс.
10 Stunning CSS 3D Effect You Must See
3:00
Просмотров 1,5 млн
Step By Step Form - CSS Animations
19:34
Просмотров 91 тыс.