SVG Explained in 100 Seconds
Вставка
- Опубліковано 17 жов 2024
- What are Scalable Vector Graphics 🤏? How are vector images different than raster images? Learn the fundamentals of SVG in 100 seconds!
Learn more about web design, SVG, and CSS in this tutorial: fireship.io/le...
References:
Star Wars Animation codepen.io/ner...
Path Docs developer.mozi...
#webdev #html #100SecondsOfCode
Install the quiz app 🤓
iOS itunes.apple.c...
Android play.google.co...
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
Stay tuned for "Beyond SVG" in a few days... You can do amazing things with SVG from a design perspective.
Figma or Inkscape*
Illustrator is dead.
Thanks for the video though, one of the best channels on UA-cam for sure!!
Can't wait, hope we'll see some animation examples
OMFG
Nice! I love the potential that SVG has
😍😍😍
I had no idea it was even possible to manually draw bezier curves without the use of software like illustrator. This is definitely one i would have watched beyond 100 seconds for
I mean I wouldn't recommend it for most things, but it's possible. Working on a long SVG vid now :)
Obviously it is, why wouldn't it?
It's just... difficult. Not syntax-wise but rather getting-the-right-numbers-wise.
But if it can be done with software then it's obvious it can be written without it. Software can only use what's already defined in SVG format.
Math baby!
@@Fireship Please, SVG is like an old art for making great UIs, not good UIs, but the great ones with user interactivity and animations
@@Fireship you knew it was coming
I had no idea the inside of an svg file was just markup. This opens the door to so many possibilities
Shocking for me was that Android .apk and IOS .ipa application files was just zip archives with different file extension name!
@@SirusStarTV Even Microsoft Office files like .docx and .xlsx are just zip archives
The more you know!
@@SirusStarTV whaaaaaaaa
@@IxMeTutorials interesting
Coolest things I’ve learned about svg’s is that you can make changes to them with JavaScript, like a prop in react and change a color or text on the svg. Additionally you can put mathematical equations in svgs. SVGs are underrated IMO.
Damn never knew about that
@@shahnawazazam yep, if you were to be building an e-commerce site with customization or personalization products, svgs would be the way to go. Would easily give your customer a visual of their selections.
@@jdubina6078 but what well you use svg in this example??
also is it that kinda ling and redundant easier to use an img
@@ko-Daegu you could use this this if you had an e-commerce store where you sell personalized or customized items. Like an item where someone could put their name on a product. When they type their name in an input field, you could render and svg to show them what it would look like. This image could then be saved.
@@ko-Daegu not sure what you mean by 'kinda ling' but img tags can be quite annoying when trying to deal with the new web vitals, each tag to our image domain (not cdn) is around 120ms with 20ms of that being the actual image download and the rest being pre-download communication to the server hosting the image
tbh anything that can be vectorized should be imo if it can be kept under 2kb gzipped in svg format
You are on fire lately.
now he's firefireship.
help him, don't let him burn
I love all the "fashionable" 100 seconds. But these little gems is what I personally appreciate most. Thank you.
Today I learned: SVG isnt a binary format but rather a format thats actually simmiliar to HTML
It is HTML code
you can literary write svg tags in your html
@@abdallahmohammed9978 it's based on XML
@@abdallahmohammed9978 it's XML to be specific because it's more strict, you have to close every tag
@@igorswies5913 The Path tags can be closed like this
@@abdallahmohammed9978 that's what I meant
0:33 - Code
1:17 -
d = draw
M = Move absolute
m = move relative to the last point
l = line that actually draws
I have been doing frontend for 5 years, I started building open sources and contributing to existing ones, worked on huge projects
Drawn svgs and animations using figma and css
This 100 seconds explained svgs better than any other resources I've read lol
Manually writing SVGs been one of the most difficult topics for me
Thanks a lot fireship you're awesome
figma balls
@@DexieTheSheep Lmao
If you have a good handle on math and trigonometry, even geometry, you can get down. But I would say for x/y location and shapes, not really as an Artist. As an artist, it's moot. I just explained to a person: An artist can learn HTML and CSS, but a mathematician won't become an artist. I created a drawing tool, using JavaScript that draws circles, arcs, shadows, pinpoints arcLengths and projections and line of sight over a curve and so on; even scales it with a slider. But there is nothing about it that is what an artist can use. It's pure math and navigation and plotting points with said math and trig and geometry.
Bézier is a Genius , He invented those curves controlled by some points for renault
Hey , I hope one day I can see this channel have 10m subs because you honestly deserve it with the perfect , concise , informative , entertaining and engaging content you create on a weekly basis. You are a legend , thank you so much for the content. Great Video !
This was a much needed video for me.
I have been using SVG for quite a while now and I had no idea that these things were this simple.
short, detailed and straight to the point, thanks
Best shortest svg video I’ve ever seen. And believe me I spent a whole day once researching SVG
Cool!
Next: HTML5 Canvas API in 100 seconds🔥
Omg yes !
Mozilla has pretty good docs and tutorials for the canvas that helped me a lot.
I thought it would be too short for HTML canvas API but you can pretty much describe how to draw shapes and clear background in 100 seconds
@@SirusStarTV you could probably do simple animation as well
+1
Great man... You can't even imagine how creatively 100 seconds of series helped me. And possibly every one of us .✨
The best "casual watching" programming channel. Magnificent work.
I noticed that I was blindly using svg files for years. I've enlightened :)
SSL/TLS in 100 Seconds
this
This is a perfect pace for somebody who already has knowledge of coding
Thank you
Totally worth the 100 seconds! Short enough and within the same time crystal clear, amazing!
god this saved me from watching hundreds of minutes of videos and tutorials to just know these basic things! thank you so much
I didn't actually know that SVG works like turtle graphics. Thanks for an awesome and concise explanation :)
Yeah lol
This just gave me the answers I need to work on a project that’s been in the back of my mind! So helpful! Thanks!
This was amazing .. I always ignored svg part, when ever I had came across it...now seems like it's the time, I will start doing some designing stuffs as well...Thanks. .It was really helpful !!!
I love those shorts!
Those arent the shorts but still this series is so good
This series is so cool that i end up watching so many it goes from 100 seconds to 10000000000000000
I have never used PNGs for my web applications. It's crazy how high quality your website becomes with SVGs.
omg literally what i needed at this very moment. i was just trying to wrap my head around why one of my icons did not work properly and boom.. fireship makes a video about it
WOW! Amazing video! I think I will use what I learned in _only 100 seconds_ to create small icons in websites that can be colored like text just by the use of color-definitions via CSS. One of the most useful videos I have ever watched on UA-cam!
Woahh, you made my day a lot productive knowing that SVG's inner workings. Thanks a lot sir!
This is so cool and informative.
I always wondered what was the long code in the path attribute when I inspected a website!
Thank you 🔥
something that i was ignorant to study for long period assuming it is complex; but...as usual, u just spoonfed my brain and its asking for more! thnx man
Just stumbled on this channel and ended up subscribing because I like the 100 seconds concept of high-quality content.
With fewer than a 600K subscribers, this channel is greatly undervalued. Thanks for all the content!
Now they have over 2 million! I love the way they explain everything so simply so it's easy to understand. Too bad UA-cam wasn't around when I started learning vanilla HTML & CSS.
It's really daunting to stare at svg codes but this 100 seconds literally made it easier
You can use Inkscape, which is an excellent, open source and very professional vector graphics software
It’s what I use and I absolutely love it!
The only channel that gives you what you need right when you need it.
Wow I got basic clear understanding of SVG in 100 seconds. Wow! Thank you!
I wish I would had seen this half an hour ago. This is the first video that's made sense to me. Thank you!
Me before watching this video: **looks at SVG I'm trying to make with intense confusion** 😵
Me after watching this video: SO THAT'S WHAT THOSE NUMBERS AND LETTERS MEAN 🧠
whoa!! I was always scared of drawing SVG by myself. Never thought it would be that simple :O
I love your post. You have the best explanation for all the ideas of web and programming that were never clear to me, Thanks @Fireship
It also opens the door to tons of security issues. Love SVGs.
Holy hell. I genuinely did not know it awas this simple. Always saw random X Y M L characters and blindly just copy pasted it in myHTML. God bless you Sir. This was extra awesome than your other, already awesome videos.
Thanks A Lot...Was Unable TO Understand The Difference Between PNG and SVG from a Long time
couldn't believe I spent 4 hours before finding you, thank god
Great video, helped me more than the other 10 minutes videos explaining SVG xd
MIND = 🤯
Always had a hard time to grasp the basics of SVG. You explained it like no one. Waiting eagerly fo the Beyond 💯s
This channel is making shorts before shorts became a thing in youtube!!!
Litterally the best explanation ever for svgs
My mind was blown, watching this video
I didn't expect this, happy surprise!
Holy these 100second vids are so good
Your channel is the best every channel for programmers. Love u a lot bro ❣️
I find these so useful lol, would like in depth courses or tutorials from this page, cuz if they can provide this much information in 100 seconds, well
It reminds me of Fortran. For those of you under 50, Fortran was an old programming language that stopped being used for the most part after C+ came out. but back in the mid 80's it was still viable.
This content is fantastic. We need more teachers like you
U explain very good in short time, that's very good
More such shorts please.. this is 🔥🔥
All these years ... How did i miss the opportunities i can create with illustrator ... Thank you for this !
This makes svgs much more easier to understand
Much needed one for me. Thank you so much for this simple easiest video ❤️
This is really helpful. At my Job I got a Project to visualize data in svgs.
I'm wondering 🧐could we crowd-fund Fireship to produce "rapid, concise, and meaningful dev docs" for ALL web related langs/platforms/libs? Seriously, I get such a lot from these short vids. It's a power punch of just the right amount of info to dive in and get going with things. Much appreciated ♥️
another brilliant episode that is keeping my list of stuff-I-should-know-but-don't topped up!
Amazing, I am using SVGs for many years without knowing how actually they are created.
New subscriber, your videos are simply as cool as they are entertaining and educational.
That’s so cool! Hope you do a bigger vid on them!
A mention of "currentColor" would have been helpful as well in order to be able to dynamically overwrite the svg color from outside
that is reallly awesome focus on svg icon
ik im late to commenting on this vid but tysm, now i inderstand the svg bits in html when im making webscraper code. Now im able to figure out how to pull the "most viewed" bar from youtube videos in my next project :D
I am really appreciate the series. I wish if your team can release a 'ADA in 100 seconds' since I do love that language
didn't know that we could manually make svg, ty !
This has to be your best video.
I want to see a longer version fo this brilliant video.
It always seemed strange to me that in such a structured xml-based language, the tag just uses this weird string with its own mini language. The list of commands could easily have been child tags inside the instead. I wonder why they decided to go this route.
Learned more about SVG in 2 minutes here than I've been able to pickup anywhere else
ASCII in 100 seconds
ASCII can be explained in 10 seconds, perhaps he can do all character encoding in 100 seconds?
@@TheAndre2131 Unicode and Unicode Transfer formats are big topic that couldn't be explained under 100 seconds
@@SirusStarTV The man has managed to cover Kubernetes, Nginx, etc in 100 seconds. Surely he could do a brief high-level overview of how they work in 100 seconds?
Holy Smokes. Thank you for making it so simple!
The "useful content per second" metric of this video is insane
hey man, love your amazing knowledgeable videos. one of my favourite channels of all time
I had no idea that I would be interested in learning svg lol you are a legend
magnific work! Now I can understand Curves!
one 'gotcha' in SVG transforms like rotate is that by default the elements use the origin of the SVG rather than the origin of the element. so in your example of rotate being applied to the element, it would rotate using the top left of the SVG as a transform origin. that behavior would be unexpected, because it is not like normal HTML elements. One way to fix this is to apply transform-box: fill-box; to the SVG element. that way it would rotate as expected (and like your example)
You've basically explained it to me! Thank you!! 🙂👍 (Basically, it creates images which are good to be enlarged to any size.) 🙂
Amazingly explained for a 100 sec video wow
Ayyy perfect! Just in time for an afk meal :D
thankyou you saved my life
I learned more in the first 20 seconds than I have seeing and hearing about “svgs” over the last 2 years
I always hated svg as they were annoying to convert to but now that it was explained to me, it is actually pretty cool
I learned total SVG from this video. Thanks. Maybe I can work with it now
I can say, I've watched this before and coming back to this after hitting my head on the wall with svgs, I realised that this has a lot of info.
One thing being the shapes.
No more css circle hack from now on.
SVG
I didn't know that I needed that
really well explained in 100 min thanks
Well explained i just love your content brother. Lots of love from 🇮🇳
What a nice and fine way of explaining it. Really good
Straight to the point awesome!
I learned more about SVG by watching this video than by watching some full courses on the subject.
loved this video, learned really fast!!
i understood in 100 seconds thanks brooooo