Make Awesome SVG Animations with CSS // 7 Useful Techniques
HTML-код
- Опубликовано: 5 июн 2024
- 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 - Наука
I learned so much about SVGs just from your 100 second video! This is gold ~ The power of SVGs is severely underrated.
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.
It's just ur perception that you learnt a lot in 100 secs cuz' that's hollow learning until you practice that
@@piyush9555 very true
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 😁
Until recently it had poor browser support.
Bro, your ship is certainly on fire, and I am onboard!
wait, we're not talking about Evergreen, are we?
🔥🔥🔥
Haha corny
Who in they right mind wants to be on a burning ship?
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.
if can i ask, what the challenge to do both?
@@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.
@@ihavetwofaces 1 year later, did you manage to get in a position to play around on the front end? Perhaps something entrepreneurial?
U are smart guy ❤
@@thecuriousape9712 I hope they did
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 🤯
This is LITERALLY what I wanted!!! I commented exactly this on your last video.
Thanks for the suggestion
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.
What is the name of the program he is using ?
@@yunusbilecen6660 for drawing svgs? its Figma
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!
What is the name of the program he is using ?
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 🤯
yes im definitely using it
I thus solved a complex animation that required JS implementation, which was great!
wow
It's very usefull.... But i already know about 😊
@@suraj351 Give yourself a ribbon, champ.
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!
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
@@brendabaholo1610 shut up you're crazy
@@axeleli6845 chill man
😄
@@brendabaholo1610 Want forgiveness? Take crack- I meant religion.
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
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 ☺️!
I might get job with all of this.
In few videos learned more than in my entire Web programing course on faculty.
This video should help your personal website stand out at least.
Really thought developers coded svgs using some kind of artistic mastery. Never knew figma could do this seamlessly. Thank you
1:02 - Jeff pulling out his college Math HW 😂
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.
For anyone who cannot see the animation panel (probably due to an older ver of chrome ) try clicking on the 3 dots ,
then click on the more tools tab then select animation
What is the name of the program he is using ?
@@yunusbilecen6660figma he said it
Visual Studio Code(web/application) and Figma(web)@@yunusbilecen6660
every time i watch your videos i wonder why i spent so much on random courses, i could have just seen your videos
I didn't even know you can do this with SVG, learn new things everyday
Half of viewers subscribed is actually really good! Congrats!
Best programming shorts on youtube! Your execution and knowledge is very impressive man!
that's just a good explanation, really complex concepts in a few minutes in a very useful and understandable way. thank you
Seriously ? What a great content for such a short video. Full of a lot of tips! Awesome!
I came to learn how to animate svgs, I left with what I came for and a set o tools. Many thanks!
EASILY one of the best programming channel on RUclips. You don't understand how valuable your videos are !!
The animations are impressive, but what's even more impressive is your awesome tutorial. Thank you
Awesome video! I really enjoy these clear and short tutorials!
You have a great teaching style. Thank you for a great refresher!
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.
WoW! Learning SVG and animating it is like learning HTML5 and CSS3 all over again! Amazing!
Never knew about the animation tab thank you so much for the video and for this feature it's a game changer
This was very well explained. Thank you! More of this pleeezz
This is really well formatted and precisely explained video. You saved so much of my time with this video. Thank you so much!
More people should subscribe in sign of respect because of quality content you provide to us. Thank you!
Absolutely love your videos as they're always packed with yummy tips & tricks.
You're the man! Keep it going
Top Js Effect ruclips.net/video/V4Aq9yGWpA4/видео.html :)
Cool video. I'm a big fan of embedding SVG directly into the DOM; however, I prefer to leverage & for performance. Happy animating!
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!
Top Js Effect ruclips.net/video/V4Aq9yGWpA4/видео.html :)
Your explanations are the best!
Efficient and complete.
Wooow! Priceless 12 minutes video :) Thank you so much for supercalifragilistic tutorial!
Wow, it's the best SVG guid ever!
Thank you so much! 💖💖💖💖💖
High quality content + Moving speed = Fire 🔥
High quality content + Moving speed = Friction causing x+y = Fire🔥
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..
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 😂
Always wanted to learn this, many thanks 😊
Really an impressive one!
Thanks!
The way you animate the bolt icons blew my mind, the inline CSS variables are amazing.
I can't thank you enough, I was looking for something like this.
man! thank you! this is a lot more than what I expected!
OMG that --order variable trick is amazing!
Loved the css variable --order at the end. Very creative!!
Top Js Effect ruclips.net/video/V4Aq9yGWpA4/видео.html :)
Just when i thought i knew a litle bit about animations... i find this stuff... i already subscribe
thank you so much, SVG is awesome.
I feel like I knew this the whole time! What a great video!
I really needed this video. My app needs a UI update and this gave a few excellent ideas 👌
Didn't realize you could use calc with time durations. Very nice stagger technique! 👏
I love it how I always get this "AHHHH nice" effect from your tutorials.
Videos have been 🔥 lately
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
Love your videos. You are one of the best guides on RUclips.
Thanks for the elaborative introduction to SVGs
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.
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
Great video. Thank you!
Just learned how to make svg animations from this. Nice.
Fantastic Video! Thank you sharing!!!
Thanks bro, I never liked svg cuz I didn't understand ém but now I feel like you gave me super powers
Mr Delaney these last weeks you have became my favorite channel.. love your content
This is pretty much how you would do it in Inkscape, using layers, grouping, containers and ID's etc. Nice
Okay... I literally need this!
such a helpful and time-saver video thank you
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 🧐.
That was a cool one.
Thank you.
amazing video as always. You are like a gift from the web development gods
Wow. Thank you so much!!
Finally, something fun to do today 🔥🎸🍺🍔
Man, you are on fire! Keep up the good work. ❤️
Wow, amazing content as always! 🔥🔥
Thanks Jeff!! awesome content as always!
It has the best Content available to try and create things , Without any length tutorials
Before this video I was scared of scalable vector graphics, but now, I can’t leave home without one, thanks FireShip
This is awesome! Thank you!
THANK YOU FOR THIS. LEARNT A WHOLE LOT🔥
Amazing. Love your videos man!
You listened to me! Thanks!
This is awesome. Thanks for sharing ❤️
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.
Loving these videos lately! Already using stuff I learned from your last SVG video... keep up the great content, much appreciated!
Brilliant explaination!! Love this channel!
This is mindblowing stuff! Wow!
Great content thanks for sharing. Since the video Figma became a subscription based SW.
Man that's some quality content right there! Respect!
This one is GOLD STANDARD ...so much SVG and animation knowledge packed in just a few mins. JUST AWESOME!
This is really helpful, thanks man
Hohohooooo ... Bro, you have more??
I enjoyed every bit of it.
To me you are the best web dev channel.
Though it's a year late, but great work man. You hand out a good, short and efficient explanation and you covered 90% of the technical parts! thanks
Though it's a year and three weeks late, but great work man. You hand out a good, short and efficient explanation and you covered 90% of the technical parts! thanks
Outstanding video! Great use of CSS variables!
Top Js Effect ruclips.net/video/V4Aq9yGWpA4/видео.html :)
thanks for your great teaching.
Great tutorial!
Your videos are extremely helpful. Thanks brother
*subscribed. Great content and very well explained. Thank you !! I learned a lot with this video.