SVG Explained in 100 Seconds

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 23. 03. 2021
  • 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/lessons/css-cards...
    References:
    Star Wars Animation codepen.io/nerdmanship/pen/ZL...
    Path Docs developer.mozilla.org/en-US/d...
    #webdev #html #100SecondsOfCode
    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
  • Věda a technologie

Komentáƙe • 579

  • @Fireship
    @Fireship  Pƙed 3 lety +978

    Stay tuned for "Beyond SVG" in a few days... You can do amazing things with SVG from a design perspective.

    • @softwarelivre2389
      @softwarelivre2389 Pƙed 3 lety +18

      Figma or Inkscape*
      Illustrator is dead.
      Thanks for the video though, one of the best channels on CZcams for sure!!

    • @fibredeneige
      @fibredeneige Pƙed 3 lety +4

      Can't wait, hope we'll see some animation examples

    • @klutch4198
      @klutch4198 Pƙed 3 lety

      OMFG

    • @DavidB-tw9tp
      @DavidB-tw9tp Pƙed 3 lety +2

      Nice! I love the potential that SVG has

    • @theolavaux
      @theolavaux Pƙed 3 lety

      😍😍😍

  • @brianevans4
    @brianevans4 Pƙed 3 lety +2068

    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

    • @Fireship
      @Fireship  Pƙed 3 lety +265

      I mean I wouldn't recommend it for most things, but it's possible. Working on a long SVG vid now :)

    • @elementiro
      @elementiro Pƙed 3 lety +41

      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.

    • @MobiusCoin
      @MobiusCoin Pƙed 3 lety +11

      Math baby!

    • @literallybiras
      @literallybiras Pƙed 3 lety +6

      @@Fireship Please, SVG is like an old art for making great UIs, not good UIs, but the great ones with user interactivity and animations

    • @erkangorgulu6013
      @erkangorgulu6013 Pƙed 3 lety +2

      @@Fireship you knew it was coming

  • @alexhooper27
    @alexhooper27 Pƙed 3 lety +634

    I had no idea the inside of an svg file was just markup. This opens the door to so many possibilities

    • @SirusStarTV
      @SirusStarTV Pƙed 3 lety +98

      Shocking for me was that Android .apk and IOS .ipa application files was just zip archives with different file extension name!

    • @IxMeTutorials
      @IxMeTutorials Pƙed 3 lety +52

      @@SirusStarTV Even Microsoft Office files like .docx and .xlsx are just zip archives

    • @somerandomuser5155
      @somerandomuser5155 Pƙed 3 lety +6

      The more you know!

    • @alexhooper27
      @alexhooper27 Pƙed 3 lety +7

      @@SirusStarTV whaaaaaaaa

    • @SirusStarTV
      @SirusStarTV Pƙed 3 lety +4

      @@IxMeTutorials interesting

  • @jdubina6078
    @jdubina6078 Pƙed 3 lety +490

    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.

    • @shahnawazazam
      @shahnawazazam Pƙed 3 lety +2

      Damn never knew about that

    • @jdubina6078
      @jdubina6078 Pƙed 3 lety +6

      @@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.

    • @ko-Daegu
      @ko-Daegu Pƙed 3 lety +1

      @@jdubina6078 but what well you use svg in this example??
      also is it that kinda ling and redundant easier to use an img

    • @jdubina6078
      @jdubina6078 Pƙed 3 lety +13

      @@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.

    • @brndto
      @brndto Pƙed 3 lety +4

      ​@@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

  • @DesignByFaizi
    @DesignByFaizi Pƙed 3 lety +384

    You are on fire lately.

  • @furball_vixie
    @furball_vixie Pƙed 3 lety +746

    Today I learned: SVG isnt a binary format but rather a format thats actually simmiliar to HTML

    • @abdallahmohammed9978
      @abdallahmohammed9978 Pƙed 3 lety +38

      It is HTML code
      you can literary write svg tags in your html

    • @092_deepak_kumar3
      @092_deepak_kumar3 Pƙed 3 lety +54

      @@abdallahmohammed9978 it's based on XML

    • @igorswies5913
      @igorswies5913 Pƙed 3 lety +38

      @@abdallahmohammed9978 it's XML to be specific because it's more strict, you have to close every tag

    • @abdallahmohammed9978
      @abdallahmohammed9978 Pƙed 3 lety +8

      @@igorswies5913 The Path tags can be closed like this

    • @igorswies5913
      @igorswies5913 Pƙed 3 lety +3

      @@abdallahmohammed9978 that's what I meant

  • @coach10001
    @coach10001 Pƙed 3 lety +41

    I love all the "fashionable" 100 seconds. But these little gems is what I personally appreciate most. Thank you.

  • @Prabh_cc
    @Prabh_cc Pƙed 8 měsĂ­ci +8

    when i start understanding, video endsđŸ™„đŸ˜¶đŸ’€

  • @brucewayne2480
    @brucewayne2480 Pƙed 3 lety +22

    BĂ©zier is a Genius , He invented those curves controlled by some points for renault

  • @muazahmed4106
    @muazahmed4106 Pƙed 3 lety +108

    SSL/TLS in 100 Seconds

  • @mohammadoulabi4212
    @mohammadoulabi4212 Pƙed 3 lety +186

    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

    • @DexieTheSheep
      @DexieTheSheep Pƙed 2 lety +7

      figma balls

    • @billygreggory7899
      @billygreggory7899 Pƙed rokem +2

      @@DexieTheSheep Lmao

    • @V.Z.69
      @V.Z.69 Pƙed 8 měsĂ­ci

      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.

  • @ivanangelov8825
    @ivanangelov8825 Pƙed 2 lety +1

    Totally worth the 100 seconds! Short enough and within the same time crystal clear, amazing!

  • @bilaleyrik8680
    @bilaleyrik8680 Pƙed 3 lety +18

    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 !

  • @pemessh
    @pemessh Pƙed 3 lety +3

    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.

  • @kuroikenshi9217
    @kuroikenshi9217 Pƙed 3 lety +87

    Cool!
    Next: HTML5 Canvas API in 100 secondsđŸ”„

    • @ludologian
      @ludologian Pƙed 3 lety +1

      Omg yes !

    • @DavidDeCorso
      @DavidDeCorso Pƙed 3 lety +1

      Mozilla has pretty good docs and tutorials for the canvas that helped me a lot.

    • @SirusStarTV
      @SirusStarTV Pƙed 3 lety +1

      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

    • @DavidDeCorso
      @DavidDeCorso Pƙed 3 lety

      @@SirusStarTV you could probably do simple animation as well

    • @Aouraghmouhamed
      @Aouraghmouhamed Pƙed 3 lety

      +1

  • @md.fazlulkarim8847
    @md.fazlulkarim8847 Pƙed 3 lety +2

    Great man... You can't even imagine how creatively 100 seconds of series helped me. And possibly every one of us .✹

  • @Digital963
    @Digital963 Pƙed 3 lety +1

    Best shortest svg video I’ve ever seen. And believe me I spent a whole day once researching SVG

  • @brianzhamilton
    @brianzhamilton Pƙed 3 lety +2

    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!

  • @crashingflamingo3028
    @crashingflamingo3028 Pƙed 3 lety +11

    I didn't actually know that SVG works like turtle graphics. Thanks for an awesome and concise explanation :)

  • @blueguy5588
    @blueguy5588 Pƙed 3 lety +1

    The best "casual watching" programming channel. Magnificent work.

  • @mediocreman6323
    @mediocreman6323 Pƙed 3 lety +1

    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 CZcams!

  • @Psychopatz
    @Psychopatz Pƙed 3 lety +1

    Woahh, you made my day a lot productive knowing that SVG's inner workings. Thanks a lot sir!

  • @jannes6666
    @jannes6666 Pƙed 3 lety +19

    I love those shorts!

    • @karlnassar8646
      @karlnassar8646 Pƙed 3 lety +1

      Those arent the shorts but still this series is so good

  • @SolomFoz
    @SolomFoz Pƙed 2 lety

    god this saved me from watching hundreds of minutes of videos and tutorials to just know these basic things! thank you so much

  • @timothymccully795
    @timothymccully795 Pƙed 2 lety

    I wish I would had seen this half an hour ago. This is the first video that's made sense to me. Thank you!

  • @TheGitGuild
    @TheGitGuild Pƙed 3 lety +6

    I noticed that I was blindly using svg files for years. I've enlightened :)

  • @venkateshprasad7488
    @venkateshprasad7488 Pƙed 3 lety +2

    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 !!!

  • @bsky1998
    @bsky1998 Pƙed 3 lety +21

    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 🧠

  • @manavshah7033
    @manavshah7033 Pƙed 2 lety +5

    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 đŸ”„

  • @nrnoble
    @nrnoble Pƙed 2 lety

    Just stumbled on this channel and ended up subscribing because I like the 100 seconds concept of high-quality content.

  • @micah2936
    @micah2936 Pƙed rokem

    This is a perfect pace for somebody who already has knowledge of coding
    Thank you

  • @TvsChaitanya
    @TvsChaitanya Pƙed 3 lety +1

    Much needed one for me. Thank you so much for this simple easiest video ❀

  • @akC012
    @akC012 Pƙed 3 lety

    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

  • @treyquattro
    @treyquattro Pƙed 3 lety

    another brilliant episode that is keeping my list of stuff-I-should-know-but-don't topped up!

  • @ScottLee64
    @ScottLee64 Pƙed 3 lety +1

    With fewer than a 600K subscribers, this channel is greatly undervalued. Thanks for all the content!

    • @albedesigns
      @albedesigns Pƙed rokem

      Now they have over 2 million! I love the way they explain everything so simply so it's easy to understand. Too bad CZcams wasn't around when I started learning vanilla HTML & CSS.

  • @dennisbarzanoff9025
    @dennisbarzanoff9025 Pƙed 3 lety +1

    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

  • @Dloc47
    @Dloc47 Pƙed 2 lety

    Wow I got basic clear understanding of SVG in 100 seconds. Wow! Thank you!

  • @developerpranav
    @developerpranav Pƙed 3 lety

    hey man, love your amazing knowledgeable videos. one of my favourite channels of all time

  • @Qwetzxl
    @Qwetzxl Pƙed 2 lety +1

    This series is so cool that i end up watching so many it goes from 100 seconds to 10000000000000000

  • @imthiaz09
    @imthiaz09 Pƙed 3 lety

    The only channel that gives you what you need right when you need it.

  • @kingbiibii
    @kingbiibii Pƙed 3 lety +1

    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

  • @user-rp7fk7vn7y
    @user-rp7fk7vn7y Pƙed 6 měsĂ­ci

    short, detailed and straight to the point, thanks

  • @gh0stcloud499
    @gh0stcloud499 Pƙed 3 lety

    That’s so cool! Hope you do a bigger vid on them!

  • @p32929
    @p32929 Pƙed 3 lety +3

    whoa!! I was always scared of drawing SVG by myself. Never thought it would be that simple :O

  • @nullpointer3860
    @nullpointer3860 Pƙed 2 lety

    New subscriber, your videos are simply as cool as they are entertaining and educational.

  • @stevend2748
    @stevend2748 Pƙed 4 měsĂ­ci

    0:33 - Code
    1:17 -
    d = draw
    M = Move absolute
    m = move relative to the last point
    l = line that actually draws

  • @Banalitude
    @Banalitude Pƙed 3 lety

    Your content is so informative, thank you so so much !

  • @arospro
    @arospro Pƙed 3 lety

    This was so well explained! Thank you!

  • @ThiagoVieira91
    @ThiagoVieira91 Pƙed 3 lety

    MIND = đŸ€Ż
    Always had a hard time to grasp the basics of SVG. You explained it like no one. Waiting eagerly fo the Beyond 💯s

  • @lautarolesniewicz2884
    @lautarolesniewicz2884 Pƙed 10 měsĂ­ci

    Great video, helped me more than the other 10 minutes videos explaining SVG xd

  • @mridulbarman027
    @mridulbarman027 Pƙed 3 lety

    Your channel is the best every channel for programmers. Love u a lot bro âŁïž

  • @pauloprado1688
    @pauloprado1688 Pƙed 3 lety

    What a nice and fine way of explaining it. Really good

  • @jannesvanquaillie9151
    @jannesvanquaillie9151 Pƙed 2 lety

    My mind was blown, watching this video
    I didn't expect this, happy surprise!

  • @salmankazi5308
    @salmankazi5308 Pƙed 3 lety

    Thanks A Lot...Was Unable TO Understand The Difference Between PNG and SVG from a Long time

  • @sinanyaman2007
    @sinanyaman2007 Pƙed 3 lety

    I had no idea that I would be interested in learning svg lol you are a legend

  • @LanceThorpe
    @LanceThorpe Pƙed 2 lety

    Holy these 100second vids are so good

  • @anandt2003
    @anandt2003 Pƙed 2 lety

    More such shorts please.. this is đŸ”„đŸ”„

  • @felipecarl1415
    @felipecarl1415 Pƙed 2 lety

    loved this video, learned really fast!!

  • @kocraft137
    @kocraft137 Pƙed 3 lety +45

    ASCII in 100 seconds

    • @TheAndre2131
      @TheAndre2131 Pƙed 3 lety +8

      ASCII can be explained in 10 seconds, perhaps he can do all character encoding in 100 seconds?

    • @SirusStarTV
      @SirusStarTV Pƙed 3 lety +3

      @@TheAndre2131 Unicode and Unicode Transfer formats are big topic that couldn't be explained under 100 seconds

    • @TheAndre2131
      @TheAndre2131 Pƙed 3 lety +2

      @@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?

  • @WagnerDeQueiroz
    @WagnerDeQueiroz Pƙed 3 lety

    magnific work! Now I can understand Curves!

  • @Jihed
    @Jihed Pƙed 3 lety

    I really needed that , thank you ❀

  • @danyalijaz
    @danyalijaz Pƙed 3 lety +1

    I have never used PNGs for my web applications. It's crazy how high quality your website becomes with SVGs.

  • @kennethlarsen3907
    @kennethlarsen3907 Pƙed 2 lety

    Holy Smokes. Thank you for making it so simple!

  • @etiennedaher
    @etiennedaher Pƙed rokem

    Straight to the point awesome!

  • @spb1179
    @spb1179 Pƙed 3 lety

    Litterally the best explanation ever for svgs

  • @antoniojimenez965
    @antoniojimenez965 Pƙed 3 lety

    Amazing. Just amazing !!
    Good job. It's really valuable

  • @nikyabodigital
    @nikyabodigital Pƙed 2 lety +1

    It's really daunting to stare at svg codes but this 100 seconds literally made it easier

  • @andriilukianenko8106
    @andriilukianenko8106 Pƙed 3 lety

    I want to see a longer version fo this brilliant video.

  • @SANDEEPSandeep-pr2xi
    @SANDEEPSandeep-pr2xi Pƙed rokem

    U explain very good in short time, that's very good

  • @Ninetieth4
    @Ninetieth4 Pƙed 3 lety +1

    Great as always

  • @MarcosSecu
    @MarcosSecu Pƙed 8 měsĂ­ci

    Excellent man, it helped me a lot!

  • @stevesmith0624
    @stevesmith0624 Pƙed 9 měsĂ­ci

    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

  • @ValchyGaming
    @ValchyGaming Pƙed 3 lety

    Awesome video man !

  • @umarhasnain7369
    @umarhasnain7369 Pƙed 3 lety

    I learned total SVG from this video. Thanks. Maybe I can work with it now

  • @tamsucophieuchungkhoan4241

    couldn't believe I spent 4 hours before finding you, thank god

  • @fxmtoeclipse
    @fxmtoeclipse Pƙed 3 lety

    This has to be your best video.

  • @shateq
    @shateq Pƙed 3 lety +2

    I didn't know that I needed that

  • @oneoflokis
    @oneoflokis Pƙed rokem

    You've basically explained it to me! Thank you!! 🙂👍 (Basically, it creates images which are good to be enlarged to any size.) 🙂

  • @DruSerkes
    @DruSerkes Pƙed 3 lety

    Learned more about SVG in 2 minutes here than I've been able to pickup anywhere else

  • @subhadas7747
    @subhadas7747 Pƙed 3 lety +1

    I needed this

  • @blablablabla29382
    @blablablabla29382 Pƙed 3 lety

    didn't know that we could manually make svg, ty !

  • @kevinshah_tv
    @kevinshah_tv Pƙed 3 lety +1

    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.

  • @hayatasuenaga969
    @hayatasuenaga969 Pƙed 2 lety

    I just love your videos thank you

  • @diablomertn
    @diablomertn Pƙed 3 lety

    All these years ... How did i miss the opportunities i can create with illustrator ... Thank you for this !

  • @azlearningway2527
    @azlearningway2527 Pƙed 2 lety

    Thank you for this amazing video , very good explanation :)

  • @realitybyai
    @realitybyai Pƙed 2 měsĂ­ci

    This channel is making shorts before shorts became a thing in youtube!!!

  • @sikfreeze
    @sikfreeze Pƙed 3 lety

    Wow super clear. Thank you

  • @web_masud
    @web_masud Pƙed 3 lety

    that is reallly awesome focus on svg icon

  • @lukehatcher98
    @lukehatcher98 Pƙed 3 lety

    I learned more in the first 20 seconds than I have seeing and hearing about “svgs” over the last 2 years

  • @ibrahimnajjar8241
    @ibrahimnajjar8241 Pƙed 3 lety

    Helpful, interesting, spry. THANK YOU!

  • @raypenbar8305
    @raypenbar8305 Pƙed 2 lety

    Love those videos!

  • @joshramnarain
    @joshramnarain Pƙed 3 lety

    This is one of my wow moments. Liked

  • @pixiedev
    @pixiedev Pƙed 3 lety

    Amazing man and great explanation 👏.

  • @sfathahila4799
    @sfathahila4799 Pƙed 7 měsĂ­ci

    thankyou you saved my life

  • @anmolrajx
    @anmolrajx Pƙed 3 lety

    Well explained i just love your content brother. Lots of love from 🇼🇳

  • @SnjP3RDrjv3R
    @SnjP3RDrjv3R Pƙed rokem

    This is really helpful. At my Job I got a Project to visualize data in svgs.

  • @anubisystems
    @anubisystems Pƙed rokem

    what a great explanation, thanks for sharing.

  • @lukor-tech
    @lukor-tech Pƙed 3 lety +22

    Ayyy perfect! Just in time for an afk meal :D

  • @sinpi314
    @sinpi314 Pƙed 3 lety +1

    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!

  • @teodorchirileanu
    @teodorchirileanu Pƙed 3 lety

    awesome work, more svg please!