Make Awesome SVG Animations with CSS // 7 Useful Techniques

  Рет қаралды 947,895

Fireship

Fireship

Күн бұрын

Learn 7 useful SVG animation techniques to make beautiful graphics for your website. In this tutorial, we'll build two different SVGs from scratch and animate them CSS. Source code: github.com/fireship-io/animat...
00:00 What we're building
00:42 What is an SVG?
02:22 1. Chrome Animation Inspector
03:11 2. Drawing Groups
05:10 3. Duotone CSS Variables
06:30 4. Transition Animations
07:41 5. JS events
08:36 6. Keyframe Animations
10:11 7. Animation Staggering
#css #animation #tutorial
Also see...
SVG in 100 Seconds • SVG Explained in 100 S...
CSS Keyframe Animation developer.mozilla.org/en-US/d...
SVG Docs developer.mozilla.org/en-US/d...
Install the quiz app 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font

Пікірлер: 477
@jonlothar6126
@jonlothar6126 3 жыл бұрын
I learned so much about SVGs just from your 100 second video! This is gold ~ The power of SVGs is severely underrated.
@RexGalilae
@RexGalilae 3 жыл бұрын
Having worked with SVGs a lot lately, I'd say you're in the honeymoon phase right now lol Once you dive deep into creating visualisations and charts using SVG and libraries like d3, you'll start to realize that even trivial tasks like aligning text and setting overflow rules have to be done manually and you have to provide the exact pixels for every measurement. No flexbox or grid either lol.
@piyush9555
@piyush9555 3 жыл бұрын
It's just ur perception that you learnt a lot in 100 secs cuz' that's hollow learning until you practice that
@sidheshwartiwari9834
@sidheshwartiwari9834 3 жыл бұрын
@@piyush9555 very true
@HassanSelim0
@HassanSelim0 3 жыл бұрын
yesterday I learned you can nest CSS inside an svg file so you can still reference the svg file inside your html instead of copying it, I don't know if there are browsers who don't support this or not though. The cool thing is that you can also reference this svg in a Github markdown file (like Readme), which is how I discovered this trick yesterday 😁
@sneaky-Jay
@sneaky-Jay 2 жыл бұрын
Until recently it had poor browser support.
@manjurulislamkhan4722
@manjurulislamkhan4722 3 жыл бұрын
Bro, your ship is certainly on fire, and I am onboard!
@mfaizsyahmi
@mfaizsyahmi 3 жыл бұрын
wait, we're not talking about Evergreen, are we?
@yannicknana
@yannicknana 3 жыл бұрын
🔥🔥🔥
@MM-vr8rj
@MM-vr8rj 3 жыл бұрын
Haha corny
@AndreasDelleske
@AndreasDelleske 3 жыл бұрын
@thumbsdownbandit
@thumbsdownbandit 3 жыл бұрын
Who in they right mind wants to be on a burning ship?
@ihavetwofaces
@ihavetwofaces 3 жыл бұрын
I'm a full stack developer and your content drives me CRAZY because it makes me want to do gorgeous front end stuff like this so bad! But instead I write database queries and c#/java all day. Maybe someday I can pivot to front end or even UX development.
@dori8118
@dori8118 3 жыл бұрын
if can i ask, what the challenge to do both?
@ihavetwofaces
@ihavetwofaces 3 жыл бұрын
@@dori8118 Mostly a time thing. Between "make a working, easy to use front end that looks good but nothing to write home about", "make a performant back end with good error handling and debugging", "deliver a complete product on a timeline defined by a customer", and "make the front end gorgeous with animated, responsive SVGs that don't add a ton of substance but do add a ton of style", but you can only pick 4. The others are obviously hard requirements, so very very nice UX stuff goes out the window and you get a plain ass button that says "Do Thing" instead of a cool, animated button with a nice color scheme and an aesthetic icon.
@thecuriousape9712
@thecuriousape9712 Жыл бұрын
@@ihavetwofaces 1 year later, did you manage to get in a position to play around on the front end? Perhaps something entrepreneurial?
@dieerste5799
@dieerste5799 Жыл бұрын
U are smart guy ❤
@darkerthansuede2439
@darkerthansuede2439 Жыл бұрын
@@thecuriousape9712 I hope they did
@shayanzamani9907
@shayanzamani9907 Жыл бұрын
Bruh 👌 The stagger animation effect is what I've always wondered how to apply in a clean way using plain CSS and you just simply nailed it 🤯
@MikePeiman
@MikePeiman 2 жыл бұрын
How could I possibly like this more? You are hands-down one of the greatest teaching channels in the world. Keep it up. Thank you.
@yunusbilecen6660
@yunusbilecen6660 Жыл бұрын
What is the name of the program he is using ?
@beta9996
@beta9996 Жыл бұрын
@@yunusbilecen6660 for drawing svgs? its Figma
@romeorel1679
@romeorel1679 7 ай бұрын
You are a genius. Being able to reverse engineer the animation design and recreate a new one based off of it. A truly web engineer.
@meetzaveri734
@meetzaveri734 2 жыл бұрын
This video helped me solve an issue that I was having since 3-4 months in my side project. Really, the content they produce here is powerful. Loved it
@subhadeepchatterjee1528
@subhadeepchatterjee1528 3 жыл бұрын
This is LITERALLY what I wanted!!! I commented exactly this on your last video.
@Fireship
@Fireship 3 жыл бұрын
Thanks for the suggestion
@nishilsheth9076
@nishilsheth9076 2 жыл бұрын
I never knew about the animations tab in chrome dev tools. There are so many things I learn from your videos in such a short amount of time. Keep up the good work ☺️!
@philippebaillargeon5204
@philippebaillargeon5204 3 жыл бұрын
EASILY one of the best programming channel on KZbin. You don't understand how valuable your videos are !!
2 жыл бұрын
You are definitely one of the most efficient, useful channels in this domain. A lot of useful information in a very short duration... Thank you!
@yunusbilecen6660
@yunusbilecen6660 Жыл бұрын
What is the name of the program he is using ?
@Shdnfncidjen
@Shdnfncidjen 3 жыл бұрын
Half of viewers subscribed is actually really good! Congrats!
@Dawa202
@Dawa202 3 жыл бұрын
Best programming shorts on youtube! Your execution and knowledge is very impressive man!
@ShintekBeats
@ShintekBeats 3 жыл бұрын
I belong to the 43.4%. I really appreciate your videos, I used to do CSS/HTML/JS/PHP etc when I was a kid and I have a lot of catching up to do!
@brendabaholo1610
@brendabaholo1610 2 жыл бұрын
Beloved, Please give this your special attention. God is a Good, Holy and Just( meaning that He up holds justice and does what He deems as good) Judge. He is also forgiving and He is All-Loving. He is also perfect meaning that there is nothing about Him this is contradictory. But How can He forgive you and me but still uphold Justice. It's through faith in the death, burial and resurrection of Jesus Christ. So turn repent and put your faith in the Living Christ who died for U and now Lives
@axeleli6845
@axeleli6845 2 жыл бұрын
@@brendabaholo1610 shut up you're crazy
@Kevessi
@Kevessi 2 жыл бұрын
@@axeleli6845 chill man
@danymajeed
@danymajeed 2 жыл бұрын
😄
@jaideepshekhar4621
@jaideepshekhar4621 Жыл бұрын
@@brendabaholo1610 Want forgiveness? Take crack- I meant religion.
@taofeekbakare990
@taofeekbakare990 Жыл бұрын
Really thought developers coded svgs using some kind of artistic mastery. Never knew figma could do this seamlessly. Thank you
@daniellasilverman7554
@daniellasilverman7554 3 жыл бұрын
1:02 - Jeff pulling out his college Math HW 😂
@Gepeto213
@Gepeto213 3 жыл бұрын
Seriously ? What a great content for such a short video. Full of a lot of tips! Awesome!
@sthefanocarvalho2823
@sthefanocarvalho2823 3 жыл бұрын
Your explanations are the best! Efficient and complete.
@brucemozart3665
@brucemozart3665 4 ай бұрын
The animations are impressive, but what's even more impressive is your awesome tutorial. Thank you
@dbroche
@dbroche 2 жыл бұрын
Cool video. I'm a big fan of embedding SVG directly into the DOM; however, I prefer to leverage & for performance. Happy animating!
@kalugy
@kalugy Жыл бұрын
that's just a good explanation, really complex concepts in a few minutes in a very useful and understandable way. thank you
@AkshayKumar-kz6zh
@AkshayKumar-kz6zh 2 жыл бұрын
Jeff you're a hero! Thank you a ton for making these videos. Hope they cryogenically preserve you so that the dev community never loses you. You need to be protected.
@thefront5871
@thefront5871 Жыл бұрын
WoW! Learning SVG and animating it is like learning HTML5 and CSS3 all over again! Amazing!
@jonathan-arias
@jonathan-arias 3 жыл бұрын
The way you animate the bolt icons blew my mind, the inline CSS variables are amazing.
@patroclus8796
@patroclus8796 3 жыл бұрын
This was very well explained. Thank you! More of this pleeezz
@gregoryolenovich6440
@gregoryolenovich6440 2 жыл бұрын
I do this stuff everyday and I just learned about changing css vars with js and the inline vars. Great stuff glad I watched it.
@ShmoreIITG
@ShmoreIITG 4 ай бұрын
This is really well formatted and precisely explained video. You saved so much of my time with this video. Thank you so much!
@TechJohnson
@TechJohnson 3 жыл бұрын
You have a great teaching style. Thank you for a great refresher!
@ben97864
@ben97864 2 жыл бұрын
Buddy! Blew me away! The more I learn how math and dynamic programming principles can be harnessed on the front end, the more I fall in love with it. Thumbs up on every vid of yours I watch, and an eternal subscriber!
@GamingTSH
@GamingTSH 2 жыл бұрын
Top Js Effect kzbin.info/www/bejne/jGWkomyvfLyjd5Y :)
@curiosdevcookie
@curiosdevcookie 3 жыл бұрын
I’m so super happy I had you by my side when I started self-teaching. Everyone who hasn’t subscribed is missing the hell out of web dev and programming in general. That said, I owe you a lot. When I’ll hold my first dev job, I’m going to bake you a cake, and/or consider anything else*), that makes you smile/happy, yours 🙃 *) in my realm of possibilities (no end world hunger stuff, no soul of my first born, … you get the picture 🧐.
@TheSerbianTube
@TheSerbianTube 3 жыл бұрын
More people should subscribe in sign of respect because of quality content you provide to us. Thank you!
@yatochka7777
@yatochka7777 Жыл бұрын
Wow, it's the best SVG guid ever! Thank you so much! 💖💖💖💖💖
@dankelman9562
@dankelman9562 Жыл бұрын
Awesome video! I really enjoy these clear and short tutorials!
@BO-ny5mm
@BO-ny5mm 3 жыл бұрын
Wooow! Priceless 12 minutes video :) Thank you so much for supercalifragilistic tutorial!
@mathijswy
@mathijswy 3 жыл бұрын
Nice video as always! Thanks! Btw, what screen recorder do you use to capture vscode?
@SouravDuttaROCKSTAR
@SouravDuttaROCKSTAR 3 жыл бұрын
This one is GOLD STANDARD ...so much SVG and animation knowledge packed in just a few mins. JUST AWESOME!
@Spainog
@Spainog 3 жыл бұрын
Mr Delaney these last weeks you have became my favorite channel.. love your content
@lucasbss
@lucasbss 3 жыл бұрын
every time i watch your videos i wonder why i spent so much on random courses, i could have just seen your videos
@tomijovanoski18
@tomijovanoski18 3 жыл бұрын
Whoa 😮 I’m accustomed to use all these features in my 7+ years of front-end development career , but damn - that last trick with the inline css variable just blowed my mind 🤯
@krackytech2344
@krackytech2344 2 жыл бұрын
yes im definitely using it
@butterfly7562
@butterfly7562 2 жыл бұрын
I thus solved a complex animation that required JS implementation, which was great!
@danymajeed
@danymajeed 2 жыл бұрын
wow
@suraj351
@suraj351 Жыл бұрын
It's very usefull.... But i already know about 😊
@ontheruntonowhere
@ontheruntonowhere Жыл бұрын
@@suraj351 Give yourself a ribbon, champ.
@Aspiiire
@Aspiiire 3 жыл бұрын
Never knew about the animation tab thank you so much for the video and for this feature it's a game changer
@aitboss85
@aitboss85 2 жыл бұрын
Love your videos. You are one of the best guides on KZbin.
@irun_mon
@irun_mon Жыл бұрын
I didn't even know you can do this with SVG, learn new things everyday
@leonardomoraes1658
@leonardomoraes1658 Жыл бұрын
I came to learn how to animate svgs, I left with what I came for and a set o tools. Many thanks!
@ic3xiii
@ic3xiii 3 жыл бұрын
OMG that --order variable trick is amazing!
@lwendt220
@lwendt220 3 жыл бұрын
This channel is genuinely one of the best learning resources I've ever found, I look forward to every upload.
@itsgunu5393
@itsgunu5393 2 жыл бұрын
It has the best Content available to try and create things , Without any length tutorials
@agrittiwari5485
@agrittiwari5485 Жыл бұрын
Thanks for the elaborative introduction to SVGs
@ugarz
@ugarz 3 жыл бұрын
Thank you very much you couldn't release this video at a better time ! This is exactly what I was looking for the past few days ! I was even reverse engineering Stripe's buttons 😂
3 жыл бұрын
This is really an awesome guide. It's unbelievable how somebody can clearly and quickly explain something like svg, animations, keyframes, etc...
@rice5817
@rice5817 2 жыл бұрын
Absolutely love your videos as they're always packed with yummy tips & tricks. You're the man! Keep it going
@GamingTSH
@GamingTSH 2 жыл бұрын
Top Js Effect kzbin.info/www/bejne/jGWkomyvfLyjd5Y :)
@thebavarian8726
@thebavarian8726 3 жыл бұрын
I love it how I always get this "AHHHH nice" effect from your tutorials.
@PaulWackerow
@PaulWackerow 3 жыл бұрын
Loving these videos lately! Already using stuff I learned from your last SVG video... keep up the great content, much appreciated!
@catalinim4227
@catalinim4227 3 жыл бұрын
Always wanted to learn this, many thanks 😊
@pijushbarik
@pijushbarik 3 жыл бұрын
Man, you are on fire! Keep up the good work. ❤️
@yavuzerkal2551
@yavuzerkal2551 7 ай бұрын
amazing video as always. You are like a gift from the web development gods
@paulmitchell2916
@paulmitchell2916 2 жыл бұрын
nice image at 1:04.. brings back memories of all those many years at community college catching up to the folks who actually worked hard in high school..
@harshbrownes
@harshbrownes Жыл бұрын
I feel like I knew this the whole time! What a great video!
@conradocampetella2253
@conradocampetella2253 3 жыл бұрын
Thanks Jeff!! awesome content as always!
@kwamenaplays5899
@kwamenaplays5899 3 жыл бұрын
I really needed this video. My app needs a UI update and this gave a few excellent ideas 👌
@Bstiler100
@Bstiler100 3 жыл бұрын
I can't thank you enough, I was looking for something like this.
@JR-um3kt
@JR-um3kt 3 жыл бұрын
I might get job with all of this. In few videos learned more than in my entire Web programing course on faculty.
@Fireship
@Fireship 3 жыл бұрын
This video should help your personal website stand out at least.
@WellSaint001
@WellSaint001 2 жыл бұрын
man! thank you! this is a lot more than what I expected!
@axa993
@axa993 3 жыл бұрын
Holy shit you just taught me how to SVG. Brilliant. I love this channel and I've been subscribed for a long time but you just keep impressing me.
@leosouza3008
@leosouza3008 2 жыл бұрын
what a video!!! i dont usually subscribe to channels on YT but had to subscribe to you! thanks a lot for the content on this video
@utvikler-no
@utvikler-no 2 жыл бұрын
Loved the css variable --order at the end. Very creative!!
@GamingTSH
@GamingTSH 2 жыл бұрын
Top Js Effect kzbin.info/www/bejne/jGWkomyvfLyjd5Y :)
@WilliamJuan
@WilliamJuan 3 жыл бұрын
Wow, amazing content as always! 🔥🔥
@aleksandarstoev1611
@aleksandarstoev1611 2 жыл бұрын
Man that's some quality content right there! Respect!
@shamiul_islam
@shamiul_islam Жыл бұрын
Really an impressive one! Thanks!
@bhaveshbhide
@bhaveshbhide 3 жыл бұрын
Brilliant explaination!! Love this channel!
@snakeeyesOFFICIAL76
@snakeeyesOFFICIAL76 Жыл бұрын
Just when i thought i knew a litle bit about animations... i find this stuff... i already subscribe
@jeremyrubio1531
@jeremyrubio1531 2 жыл бұрын
*subscribed. Great content and very well explained. Thank you !! I learned a lot with this video.
@_parsat
@_parsat 2 жыл бұрын
Amazing. Love your videos man!
@CoryTheSimmons
@CoryTheSimmons 3 жыл бұрын
Didn't realize you could use calc with time durations. Very nice stagger technique! 👏
@user-zo2ky4mz7d
@user-zo2ky4mz7d 3 жыл бұрын
THANK YOU FOR THIS. LEARNT A WHOLE LOT🔥
@mohamed_elmardi
@mohamed_elmardi 3 жыл бұрын
thank you so much, SVG is awesome.
@d3v431
@d3v431 2 жыл бұрын
This is awesome. Thanks for sharing ❤️
@babakkarimiasl8127
@babakkarimiasl8127 3 жыл бұрын
such a helpful and time-saver video thank you
@jimmyj.6792
@jimmyj.6792 3 жыл бұрын
Awesome explaination 🎉🎉 really great. Nice work. Thanks you so much 👍👌
@stylesg7818
@stylesg7818 2 жыл бұрын
That was a cool one. Thank you.
@ayanmukherjee9744
@ayanmukherjee9744 3 жыл бұрын
To me you are the best web dev channel.
@CHITUS
@CHITUS 2 жыл бұрын
Whoa I’m accustomed to use all these features in my 7+ years of front-end development career , but damn - that last trick with the inline css variable just blowed my mind
@steveeparsonsjr7929
@steveeparsonsjr7929 2 жыл бұрын
This is pretty much how you would do it in Inkscape, using layers, grouping, containers and ID's etc. Nice
@jdubina6078
@jdubina6078 3 жыл бұрын
Videos have been 🔥 lately
@MrKostas336
@MrKostas336 3 жыл бұрын
Your videos are extremely helpful. Thanks brother
@MVIVN
@MVIVN Жыл бұрын
This is mindblowing stuff! Wow!
@Webtricker
@Webtricker 2 жыл бұрын
That's called the way of explaining things perfectly.🤗
@ridiculousgames365
@ridiculousgames365 3 жыл бұрын
I am in love with this channel
@fieldtrip2178
@fieldtrip2178 Жыл бұрын
Just learned how to make svg animations from this. Nice.
@Dunktastic17
@Dunktastic17 3 жыл бұрын
This is awesome! Thank you!
@brendensong8000
@brendensong8000 Жыл бұрын
Fantastic Video! Thank you sharing!!!
@mrclaytron
@mrclaytron 3 жыл бұрын
awesome video (again!) - I love how you staggered the icon drop ins - I hadn't ever really thought about CSS variables being used in this way
@mukiibipeter07
@mukiibipeter07 2 жыл бұрын
Hohohooooo ... Bro, you have more?? I enjoyed every bit of it.
@LoveThatSceneChannel
@LoveThatSceneChannel 3 жыл бұрын
Okay... I literally need this!
@radigaming1584
@radigaming1584 3 жыл бұрын
High quality content + Moving speed = Fire 🔥
@swoorp
@swoorp 3 жыл бұрын
High quality content + Moving speed = Friction causing x+y = Fire🔥
@ashishtiwari3094
@ashishtiwari3094 3 жыл бұрын
Jeff you are amazing thanks for all the videos
@PeterMoueza
@PeterMoueza 9 ай бұрын
6:00 variables 7:10 hover 8:40 background 11:55 fx eval
@trishaseal7782
@trishaseal7782 10 ай бұрын
Here from The Odin Project, that was stunning!
@hydyravezberdiyew676
@hydyravezberdiyew676 9 ай бұрын
Super useful trick inside svg tag use fill="currentColor" then you can just give css color attribute, same for stroke=""currentColor"
@unucagg
@unucagg 7 ай бұрын
Thank you.
@fadlaichsan4924
@fadlaichsan4924 3 жыл бұрын
thanks for making this video tutorial 🔥
Stupid man 👨😂
00:20
Nadir Show
Рет қаралды 28 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 80 МЛН
когда одна дома // EVA mash
00:51
EVA mash
Рет қаралды 12 МЛН
10 CSS animation tips and tricks
20:13
Kevin Powell
Рет қаралды 163 М.
The Right Way to Animate SVG in React
15:36
CoderOne
Рет қаралды 16 М.
Awesome Scrolling SVG Line Drawing - How they did it!
21:45
DesignCourse
Рет қаралды 246 М.
Design Better Than 99% of UI Designers
14:52
Tim Gabe
Рет қаралды 169 М.
Basic, Intermediate & Pro animated hamburger icons
59:41
Kevin Powell
Рет қаралды 140 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
6 UI Hacks I Wish I Knew As A Beginner
11:11
Tim Gabe
Рет қаралды 701 М.
Animated Responsive Navbar with CSS - Plus Other Useful Tricks
11:40
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 400 М.
Incredible scroll-based animations with CSS-only
32:23
Kevin Powell
Рет қаралды 326 М.
M4 iPad Pro Impressions: Well This is Awkward
12:51
Marques Brownlee
Рет қаралды 6 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Google I/O 2024 - ИИ, Android 15 и новые Google Glass
22:47
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 2,8 МЛН