SVG Explained in 100 Seconds

Поделиться
HTML-код
  • Опубликовано: 23 мар 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
  • НаукаНаука

Комментарии • 578

  • @Fireship
    @Fireship  3 года назад +976

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

    • @softwarelivre2389
      @softwarelivre2389 3 года назад +18

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

    • @fibredeneige
      @fibredeneige 3 года назад +4

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

    • @klutch4198
      @klutch4198 3 года назад

      OMFG

    • @DavidB-tw9tp
      @DavidB-tw9tp 3 года назад +2

      Nice! I love the potential that SVG has

    • @theolavaux
      @theolavaux 3 года назад

      😍😍😍

  • @brianevans4
    @brianevans4 3 года назад +2049

    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  3 года назад +264

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

    • @elementiro
      @elementiro 3 года назад +40

      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 3 года назад +11

      Math baby!

    • @literallybiras
      @literallybiras 3 года назад +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 3 года назад +2

      @@Fireship you knew it was coming

  • @alexhooper27
    @alexhooper27 3 года назад +625

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

    • @SirusStarTV
      @SirusStarTV 3 года назад +95

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

    • @IxMeTutorials
      @IxMeTutorials 3 года назад +51

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

    • @somerandomuser5155
      @somerandomuser5155 3 года назад +6

      The more you know!

    • @alexhooper27
      @alexhooper27 3 года назад +7

      @@SirusStarTV whaaaaaaaa

    • @SirusStarTV
      @SirusStarTV 3 года назад +4

      @@IxMeTutorials interesting

  • @jdubina6078
    @jdubina6078 3 года назад +488

    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 3 года назад +2

      Damn never knew about that

    • @jdubina6078
      @jdubina6078 3 года назад +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 3 года назад +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 3 года назад +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 3 года назад +3

      ​@@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 3 года назад +383

    You are on fire lately.

    • @thefreeze6023
      @thefreeze6023 3 года назад +30

      now he's firefireship.

    • @and-ant984
      @and-ant984 2 года назад +4

      help him, don't let him burn

  • @furball_vixie
    @furball_vixie 3 года назад +744

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

    • @abdallahmohammed9978
      @abdallahmohammed9978 3 года назад +38

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

    • @092_deepak_kumar3
      @092_deepak_kumar3 3 года назад +54

      @@abdallahmohammed9978 it's based on XML

    • @igorswies5913
      @igorswies5913 3 года назад +38

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

    • @abdallahmohammed9978
      @abdallahmohammed9978 3 года назад +8

      @@igorswies5913 The Path tags can be closed like this

    • @igorswies5913
      @igorswies5913 3 года назад +3

      @@abdallahmohammed9978 that's what I meant

  • @coach10001
    @coach10001 3 года назад +42

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

  • @mohammadoulabi4212
    @mohammadoulabi4212 3 года назад +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 2 года назад +7

      figma balls

    • @billygreggory7899
      @billygreggory7899 Год назад +2

      @@DexieTheSheep Lmao

    • @V.Z.69
      @V.Z.69 6 месяцев назад

      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.

  • @muazahmed4106
    @muazahmed4106 3 года назад +108

    SSL/TLS in 100 Seconds

  • @kuroikenshi9217
    @kuroikenshi9217 3 года назад +87

    Cool!
    Next: HTML5 Canvas API in 100 seconds🔥

    • @ludologian
      @ludologian 3 года назад +1

      Omg yes !

    • @DavidDeCorso
      @DavidDeCorso 3 года назад +1

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

    • @SirusStarTV
      @SirusStarTV 3 года назад +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 3 года назад

      @@SirusStarTV you could probably do simple animation as well

    • @Aouraghmouhamed
      @Aouraghmouhamed 3 года назад

      +1

  • @brucewayne2480
    @brucewayne2480 3 года назад +21

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

  • @bilaleyrik8680
    @bilaleyrik8680 3 года назад +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 3 года назад +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.

  • @ivanangelov8825
    @ivanangelov8825 2 года назад +1

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

  • @crashingflamingo3028
    @crashingflamingo3028 2 года назад +11

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

  • @md.fazlulkarim8847
    @md.fazlulkarim8847 3 года назад +2

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

  • @Digital963
    @Digital963 3 года назад +1

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

  • @jannes6666
    @jannes6666 3 года назад +19

    I love those shorts!

    • @karlnassar8646
      @karlnassar8646 3 года назад +1

      Those arent the shorts but still this series is so good

  • @brianzhamilton
    @brianzhamilton 3 года назад +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!

  • @blueguy5588
    @blueguy5588 3 года назад +1

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

  • @TheGitGuild
    @TheGitGuild 3 года назад +6

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

  • @mediocreman6323
    @mediocreman6323 3 года назад +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 RUclips!

  • @Psychopatz
    @Psychopatz 3 года назад +1

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

  • @venkateshprasad7488
    @venkateshprasad7488 2 года назад +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 !!!

  • @manavshah7033
    @manavshah7033 2 года назад +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 🔥

  • @Prabh_cc
    @Prabh_cc 7 месяцев назад +7

    when i start understanding, video ends🙄😶💀

  • @timothymccully795
    @timothymccully795 2 года назад

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

  • @SolomFoz
    @SolomFoz 2 года назад

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

  • @stevend2748
    @stevend2748 3 месяца назад

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

  • @treyquattro
    @treyquattro 3 года назад

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

  • @akC012
    @akC012 3 года назад

    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

  • @bsky1998
    @bsky1998 3 года назад +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 🧠

  • @nikyabodigital
    @nikyabodigital 2 года назад +1

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

  • @micah2936
    @micah2936 Год назад

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

  • @nrnoble
    @nrnoble 2 года назад

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

  • @TvsChaitanya
    @TvsChaitanya 3 года назад +1

    Much needed one for me. Thank you so much for this simple easiest video ❤️

  • @dennisbarzanoff9025
    @dennisbarzanoff9025 3 года назад +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

  • @Qwetzxl
    @Qwetzxl 2 года назад +1

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

  • @kingbiibii
    @kingbiibii 3 года назад +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

  • @imthiaz09
    @imthiaz09 3 года назад

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

  • @developerpranav
    @developerpranav 3 года назад

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

  • @Dloc47
    @Dloc47 2 года назад

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

  • @p32929
    @p32929 3 года назад +3

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

  • @ScottLee64
    @ScottLee64 3 года назад +1

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

    • @albedesigns
      @albedesigns Год назад

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

  • @realitybyai
    @realitybyai Месяц назад

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

  • @nullpointer3860
    @nullpointer3860 2 года назад

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

  • @user-rp7fk7vn7y
    @user-rp7fk7vn7y 5 месяцев назад

    short, detailed and straight to the point, thanks

  • @tamsucophieuchungkhoan4241
    @tamsucophieuchungkhoan4241 2 года назад

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

  • @gh0stcloud499
    @gh0stcloud499 3 года назад

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

  • @danyalijaz
    @danyalijaz 3 года назад +1

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

  • @ThiagoVieira91
    @ThiagoVieira91 3 года назад

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

  • @jannesvanquaillie9151
    @jannesvanquaillie9151 2 года назад

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

  • @arospro
    @arospro 3 года назад

    This was so well explained! Thank you!

  • @lautarolesniewicz2884
    @lautarolesniewicz2884 9 месяцев назад

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

  • @Banalitude
    @Banalitude 3 года назад

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

  • @sinpi314
    @sinpi314 3 года назад +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!

  • @anandt2003
    @anandt2003 2 года назад

    More such shorts please.. this is 🔥🔥

  • @pauloprado1688
    @pauloprado1688 3 года назад

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

  • @WagnerDeQueiroz
    @WagnerDeQueiroz 2 года назад

    magnific work! Now I can understand Curves!

  • @antoniojimenez965
    @antoniojimenez965 3 года назад

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

  • @mridulbarman027
    @mridulbarman027 3 года назад

    Your channel is the best every channel for programmers. Love u a lot bro ❣️

  • @salmankazi5308
    @salmankazi5308 3 года назад

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

  • @sinanyaman2007
    @sinanyaman2007 3 года назад

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

  • @Ninetieth4
    @Ninetieth4 3 года назад +1

    Great as always

  • @LanceThorpe
    @LanceThorpe 2 года назад

    Holy these 100second vids are so good

  • @spb1179
    @spb1179 3 года назад

    Litterally the best explanation ever for svgs

  • @kevinshah_tv
    @kevinshah_tv 3 года назад +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.

  • @kennethlarsen3907
    @kennethlarsen3907 2 года назад

    Holy Smokes. Thank you for making it so simple!

  • @FunnyHaHa420
    @FunnyHaHa420 2 года назад +1

    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.

  • @etiennedaher
    @etiennedaher Год назад

    Straight to the point awesome!

  • @saikrishnasunkam4344
    @saikrishnasunkam4344 Год назад

    The "useful content per second" metric of this video is insane

  • @Jihed
    @Jihed 3 года назад

    I really needed that , thank you ❤

  • @LegendBegins
    @LegendBegins 5 месяцев назад

    It also opens the door to tons of security issues. Love SVGs.

  • @felipecarl1415
    @felipecarl1415 2 года назад

    loved this video, learned really fast!!

  • @fxmtoeclipse
    @fxmtoeclipse 3 года назад

    This has to be your best video.

  • @oneoflokis
    @oneoflokis Год назад

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

  • @andriilukianenko8106
    @andriilukianenko8106 3 года назад

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

  • @umarhasnain7369
    @umarhasnain7369 3 года назад

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

  • @subhadas7747
    @subhadas7747 3 года назад +1

    I needed this

  • @ValchyGaming
    @ValchyGaming 3 года назад

    Awesome video man !

  • @MarcosSecu
    @MarcosSecu 7 месяцев назад

    Excellent man, it helped me a lot!

  • @lukehatcher98
    @lukehatcher98 3 года назад

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

  • @SANDEEPSandeep-pr2xi
    @SANDEEPSandeep-pr2xi Год назад

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

  • @web_masud
    @web_masud 2 года назад

    that is reallly awesome focus on svg icon

  • @ibrahimnajjar8241
    @ibrahimnajjar8241 3 года назад

    Helpful, interesting, spry. THANK YOU!

  • @joshramnarain
    @joshramnarain 3 года назад

    This is one of my wow moments. Liked

  • @DruSerkes
    @DruSerkes 3 года назад

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

  • @stevesmith0624
    @stevesmith0624 8 месяцев назад

    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

  • @kocraft137
    @kocraft137 3 года назад +44

    ASCII in 100 seconds

    • @TheAndre2131
      @TheAndre2131 3 года назад +8

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

    • @SirusStarTV
      @SirusStarTV 3 года назад +3

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

    • @TheAndre2131
      @TheAndre2131 3 года назад +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?

  • @hayatasuenaga969
    @hayatasuenaga969 2 года назад

    I just love your videos thank you

  • @sikfreeze
    @sikfreeze 2 года назад

    Wow super clear. Thank you

  • @blablablabla29382
    @blablablabla29382 3 года назад

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

  • @azlearningway2527
    @azlearningway2527 2 года назад

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

  • @SnjP3RDrjv3R
    @SnjP3RDrjv3R Год назад

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

  • @diablomertn
    @diablomertn 3 года назад

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

  • @raypenbar8305
    @raypenbar8305 2 года назад

    Love those videos!

  • @shateq
    @shateq 3 года назад +2

    I didn't know that I needed that

  • @pixiedev
    @pixiedev 3 года назад

    Amazing man and great explanation 👏.

  • @teodorchirileanu
    @teodorchirileanu 3 года назад

    awesome work, more svg please!

  • @SanishkaJayasena
    @SanishkaJayasena 2 года назад

    thank you, this is worth subscribing!!!