A beginners guide to SVG | Part One: The Why, What, and How

Поделиться
HTML-код
  • Опубликовано: 20 ноя 2024

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

  • @KevinPowell
    @KevinPowell  6 лет назад +143

    So I was in a bit of a time crunch with this one and completely missed one part with the green screen! 😳

    • @darshanmehta4743
      @darshanmehta4743 6 лет назад +14

      That's alright...and Thank you for the series🙂

    • @AhmedTolys
      @AhmedTolys 5 лет назад

      🥀🌹🌺⁦

    • @smickandily
      @smickandily 5 лет назад +2

      your audio is slightly out of sync too

    • @DonatellaSafir
      @DonatellaSafir 5 лет назад +2

      Hi Kevin!! Thanks for the video, and I will like to ask you how do you get the code of example svg??? 😮 It appears at 7:11 thanks a lot!! 🤗

    • @zachwhite8054
      @zachwhite8054 5 лет назад +2

      Don't sweat it. This video is awesome.

  • @dwayne6402
    @dwayne6402 10 дней назад

    I just took the courageous jump into the world of SVG, this has been a good first foray into SVG's.

  • @nishanthsubramanya1931
    @nishanthsubramanya1931 6 лет назад +47

    You know man, I really like the way you present yourself, nothing hidden, just plain KEVIN POWELL!! Cheers, loving your videos daily!

    • @KevinPowell
      @KevinPowell  6 лет назад +9

      So glad you like my videos, and very nice of you to say that I'm authetic! I try to be, so I appreciate the comment!

  • @trudyandgeorge
    @trudyandgeorge 4 года назад +1

    I'm just starting out and am loving your channel, thank you. One quick thing: features deprecate, cars depreciate. And to any haters I say this: whenever someone mispronounces a word it's because they've learned it through reading rather than hearing which deserves mad respect.

  • @luiscolome75
    @luiscolome75 5 лет назад +7

    This Christmas holidays I'm digging into SVG's, and I knew you would have at least a couple of videos about it. Thanks million Kevin.

  • @TheElkster
    @TheElkster 6 лет назад +11

    Wow! Absolutely fantastic video! Really looking forward to watching the others in this series and trying it out for myself! I have known about SVG for years but until watching your video, I never thought about delving into it! Thanks Kevin!! 😀

    • @KevinPowell
      @KevinPowell  6 лет назад

      Glad you enjoyed the video Paul! SVG still scares me a little, even after making this series, lol. It's like this whole other world, but it opens up some awesome possiblities and you can do some really fun stuff with it (beyond saving some KBs).

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

    I just saw you for the first time on your CSS battle on Web Dev Simplified, and then I searched for a SVG tutorial and this video came up. Thanks for all the helpful videos! Can't wait to watch through the rest of your content.

  • @MrWyldWolf
    @MrWyldWolf 6 лет назад +23

    Great video! In my opinion, SVGs are one of the best kept secrets of web design.

    • @KevinPowell
      @KevinPowell  6 лет назад +7

      Someone said to me that they seemed like a dark art, and that's how I saw them too for so long. They're scary because they look different (in the code), and have lots of numbers, but it's not so bad 😁

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

    VERY interesting! I knew about SVGs way back in the 90s or early 2000s. But back then we had to convert them to raster, since browsers did not support them! And I did not know that they're just code that can be embedded and manipulated DIRECTLY via CSS. Wow! That's a real game changer! It open-up tons of possibilities! Thanks!

  • @neutilu_sss2308
    @neutilu_sss2308 2 месяца назад +1

    fantastic video! even 6 years later! Thank you!

  • @branislavcavic5886
    @branislavcavic5886 6 лет назад +6

    Great timing haha. Just building a website for a friend and I started using svg for the first time and it bothered me that I have to put my svg with the rest of the html in order to use fill and other cool stuff but now with symbol at least it is in the bottom of the page. Thanks again! :)

  • @facundocorradini
    @facundocorradini 6 лет назад +13

    Great video! I find SVGs to be the most underrated web technology (and a really useful one). Can't wait to see the rest of the series!

    • @bambooindark1
      @bambooindark1 5 лет назад

      But I have question about how it compare with Canvas.

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

    2 years later and it's still helpful 🔥🔥🔥🖤

  • @abdelmonaemshahat412
    @abdelmonaemshahat412 6 лет назад

    this is the most interesting issue we face it and we couldn't understand it. thanks kevin for explaining that weird issue . i hope we finally understand it.

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

    idk what I would be without your vids

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

    Excellent video. Very clear explanations. I'm going to recommend it to my intro web development students. However, I'd suggest you look up the difference between "depreciated" (lost value, like a used car) and "deprecated" (an outdated feature we shouldn't use, which is what you meant at 12:41 and 12:57). The words are similar, but they're not the same.

  • @solomondavid210
    @solomondavid210 4 года назад +2

    Thank you, Kelvin Powell, i am a big fan of your works and i really appreciate what you do because it has made programming easier and more comfortable for me, thanks again!

  • @thelonercoder5816
    @thelonercoder5816 2 года назад +5

    this is amazing! Literally never knew how powerful SVGs were until now. I can imagine all the things I can create with them haha. I'm creating a map app so I plan on using them.

  • @gmangsxr750
    @gmangsxr750 6 лет назад +16

    Thanks for all the content Kevin. You’re like the Derek Banas of CSS. Clean, clear, to the point, and live examples. Demystifying on the fly, thanks!!! (Side note, I think it’s “deprecated” not “depreciated”)

    • @KevinPowell
      @KevinPowell  6 лет назад +2

      It is, I said it wrong :\ But glad you like my content, thanks for the kind words!

  • @999sian
    @999sian 4 года назад +9

    This really helped with my university coursework with everything going on right now

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

      im in the same boat lol

  • @mrMinstrel
    @mrMinstrel 6 лет назад +13

    A much needed topic to explore...take it to the limits!

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

    2:19 the reason scalable is part of the name is because the image automatically scales to appropriate coordinate sizes when being displayed on different screens (desktop, mobile device, etc.).

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

    When using the tag, it's not just wrapping your SVG in this tag. I did just that on my SVG and transferred the width, height and viewBox properties to the tag and now it's not rendering!! It would have been nice if you wrapped the code in your VS Code so we could compare! My SVG is a desk lamp and uses tags. May be that's why! Who knows!!

  • @blokche_dev
    @blokche_dev 6 лет назад +2

    The SVG format is amazing! =)
    For a quick and comprehensible introduction, you can also check out the book Chris Coyer - from CSS Tricks - has written. Only what you need to know as a frontend developer.

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

    Kevin, thank you very much. You have explained it really effectively.

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

    Greetings from Italy Kevin! you are a hell of a teacher!

  • @francescopasin1928
    @francescopasin1928 6 лет назад

    Yeeeaah!! Finally a video about SVG :) hope you do one about SVG animations!! Great Job! Ad always;)

    • @KevinPowell
      @KevinPowell  6 лет назад

      I'll be looking at some basic animation stuff :)

  • @BobMazzo
    @BobMazzo 4 года назад

    Thanks for this video. It was great. Sorry for the correction, but I believe he meant to say "This has been deprecated" at 12:40.

  • @KartikSharma1607
    @KartikSharma1607 6 лет назад +7

    After this series, I would love to see a series for animation framework like GSAP, anime, velocity and KUTE

    • @KevinPowell
      @KevinPowell  6 лет назад +2

      Depending on how this goes, I *might* look at some basics of GSAP and doing a simple animation using it on something.

    • @KartikSharma1607
      @KartikSharma1607 6 лет назад

      Kevin Powell while GSAP is gold standard for animation, most of the plugins are paid. I haven't seen lots of tutorials for KUTE.js you might wanna take a look at that too

    • @sunshineremovalsvic4576
      @sunshineremovalsvic4576 6 лет назад

      GSAP with ScrollMagic for total control. Have been using free version for a while.

    • @12ty
      @12ty 6 лет назад

      Kevin Powell Yes please!

  • @hemanttewari7529
    @hemanttewari7529 4 года назад

    Thanks Kevin, your explanation was very simple and easy to understand..

  • @decorummortis5175
    @decorummortis5175 6 лет назад

    I just saw this recently at work and had no idea how to use it. Coworkers were trying to get the fill of an external sourced svg to go to a hover color and we couldn't. This explains it though yay

    • @KevinPowell
      @KevinPowell  6 лет назад +1

      It's a little annoying that it plays differently in different situations, but I'm glad this helped :)

  • @verbulent_flow6229
    @verbulent_flow6229 4 года назад

    I just LOVE Scalar Vector Graphics because it is so much more fun that plain bitmap.

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

    Thank you for this. SVG looked so intimidating at first for a noob like me.

  • @morganpantoja5583
    @morganpantoja5583 4 года назад +1

    This is such a great quality video!! you did a really great job. Very well explained

  • @parasarora5869
    @parasarora5869 6 лет назад +1

    that's what I was searching for...thanks for the video...i am extremely happy...thank you very much sir!!😊

  • @mohammedriyazuddin5649
    @mohammedriyazuddin5649 6 лет назад +4

    I'm always liking your videos before watching coz i knw ur the best god bless you...😊

  • @KartikSharma1607
    @KartikSharma1607 6 лет назад +3

    Thank you for this series.

  • @perkin524
    @perkin524 6 лет назад +102

    Great video, but 'deprecate', not 'depreciate'!

    • @KevinPowell
      @KevinPowell  6 лет назад +38

      Hah, you're totally right... not sure what happened there, lol.

    • @misterhtmlcss
      @misterhtmlcss 6 лет назад +4

      I was laughing after the second time. Awww well green screen, wrong word, but still a useful video.

    • @jboxy
      @jboxy 5 лет назад +5

      I did it wrong my entire life lol

    • @job4810
      @job4810 5 лет назад +6

      Perkin524
      Actually "depreciate" is just another word for "deprecate", so Kevin Powell was very correct using that word. :)

    • @mitchpowell
      @mitchpowell 5 лет назад +11

      @@job4810 - not quite the same word. Deprecated means that it is still in use, but only for historical purposes and it will be removed probably in the next big release.
      Depreciated means the monetary value of something has decreased over time. E.g., cars typically depreciate in value.
      stackoverflow.com/questions/9208091/the-difference-between-deprecated-depreciated-and-obsolete/9208164

  • @jefffarmer592
    @jefffarmer592 11 месяцев назад +1

    I think you meant deprecated instead of depreciated ;-). But this is a great starting intro to svg.

  • @jonathanhammond2731
    @jonathanhammond2731 5 лет назад +2

    YOU DID GREAT! One day, I will have plenty of money and will be able to support you financially. In the meantime, I gave you the thumbs up. See you in the RWD Slack!

  • @technicallygeckley14
    @technicallygeckley14 5 лет назад +3

    Your content is killer. Much appreciated.

  • @RD-jr8nv
    @RD-jr8nv 4 года назад

    Finally a clear explanation

  • @benzflynn
    @benzflynn 4 года назад +9

    14:21 Deprecated, not depreciated - though I guess it amounts to the same.

  • @erwin3760
    @erwin3760 6 лет назад

    I was about to comment the green screen issue then I saw your comment in the video description ^^

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

    Thank you. Like your voice, speed and content!

  • @FederationOfLight
    @FederationOfLight 4 года назад

    Fantastic tutorial. Thanks Kevin!

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

    On a web site which im editing , trying to get these to work ,how to use them, using the mail icon an svg, and great tutorial. Thank you.

  • @japhetmnyetta6826
    @japhetmnyetta6826 5 лет назад

    YOUR TUTORIAL IS ORGANIZED ITS GOOD FOR SELF LEARNING .GOOD VERY GOOD

    • @KevinPowell
      @KevinPowell  5 лет назад

      Thanks, really glad you enjoyed it?

  • @Michael-yu9ix
    @Michael-yu9ix 5 лет назад +2

    Great video. Thanks for the upload! Just one question: How did you manage the CSS code to overwrite the inline styles? I assume there must be inline styles in the circle elements in the svg code otherwise they shouldn't have colours from the start right?
    Thanks
    Michael

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

    Thanks, this explanation is very clear to me.

  • @coming..back..in..2027
    @coming..back..in..2027 4 года назад

    I google svg and when I saw your face in one of the videos I said yesss I will understand svg and that you I did thump up

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

    Thank you for this helping with my homework assignment.

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

    your videos are absolute gold! Thanks!

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

    Hi Kevin, awesome video! I just have a little doubt. I don't understand why when you paste the "symbol" SVG code at the bottom of the HTML markup, the SVG doesn't render in viewport and you need to recur to the "use" statement. I tried to follow the tutorial, but the SGV always show without any help. Please help. I feel I am missing something important here. Once again thank you for an awesome tutorial. Sept

  • @EnglishRain
    @EnglishRain 4 года назад

    Thank you for making this 4 part tutorial.

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

    Thank you, Kevin.

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

    I AM SO HAPPY.THANK YOU.

  • @PriyaSingh-rf4jy
    @PriyaSingh-rf4jy Год назад

    Really great video!

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

    Thanks! You make things crystal clear!

  • @gandalfsnowgrey7037
    @gandalfsnowgrey7037 5 лет назад

    Thank you very much! I have been looking for this for a long time...👍👍👌

  • @YasirMalik24
    @YasirMalik24 5 лет назад

    really hepful. got lot of new info with just watching your videos. thanks again

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

    Thanks Kevin for your videos..

  • @suzuranguru9673
    @suzuranguru9673 4 года назад

    good job man, I really appreciate your videos, keep it up

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

    Hi Kevin!,
    Thank you so much for this tutorial, it helped me get started with SVG's.
    Just one thing, I took your example and used and tags with my own SVG's, but the stored SVG's at the bottom are taking up space even though they are not visible.
    I tried display: none; but can't find a way to hide the bottom SVG's without also hiding where I call them using the tag. Any advice?

  • @expukpuk
    @expukpuk 6 лет назад +7

    Kevin, you love talking...

  • @stefanbengtsson3230
    @stefanbengtsson3230 6 лет назад

    Kevin, you're the best. I think I've seen all your videos.
    A question outside this topic. I read an article about "Full Width Containers in Limited Width Parents". Can't you make a video about that.

    • @KevinPowell
      @KevinPowell  6 лет назад

      I think I've done something like that in a video in the past... I forget which one I might have done it in though, it would have been a long time ago! I could make a video specicially looking at it though, for sure. I'll add it to my list 👍

  • @jnoah7537
    @jnoah7537 6 лет назад +1

    Too shy to leave a comment!!??🤔
    NOT ME!! 😁😂
    Ive been wanting to learn more of SVGs

    • @KevinPowell
      @KevinPowell  6 лет назад

      Glad to hear it! Looks like you aren't the only one either, this seems like it's going to be a popular topic 👍

    • @jnoah7537
      @jnoah7537 6 лет назад

      Kevin Powell yes sir!😀 The series will be great. It came right on tone for me. Can't wait to see part 2.

  • @augustomeza8313
    @augustomeza8313 5 лет назад

    Amazing video! you are awesome Kevin, you make everything so easy.

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

    a vector is a reference of direction right , is the actual motion right , therefore the "scalable" is meant to to reference that is not static , it's only a pleomasm if vectors couldn't be static

  • @norbertweinkauf5757
    @norbertweinkauf5757 6 лет назад

    Thanks a lot for this guide. Keep up the excellent work!

  • @MrConway007
    @MrConway007 4 года назад +1

    Hi Kevin, but how do you export an SVG out from Illustrator? There seems to be a multitude of options and it's very overlwelming to know which options to choose

  • @jonvthvnz
    @jonvthvnz 5 лет назад +2

    Skip to 2:03 to cut to the chase.

  • @mareksawinski8225
    @mareksawinski8225 6 лет назад

    Can't wait for more!

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

    5:58 Wow you got entirely new emoticon just playing with these anchors

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

    great video, earned a sub!

  • @IsmaelFloresgenerasiondefuego
    @IsmaelFloresgenerasiondefuego 6 лет назад

    very useful this video... you're one of the best

  • @rawr2196
    @rawr2196 6 лет назад +2

    The red one in the end is soo creepy o.O
    Such u great vid once again tho

  • @sespider
    @sespider 5 лет назад

    Thank you.
    I've been using PNGs for the longest time. And now switching to SVGs.
    However, the SVGs always looks weird. The vectors keep changing out of shape. Mostly in the text shapes, although they are no longer fonts.

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

    Nice, any tips on including the svg from a file so the styles still work eg with js? And or building up svgs from components

  • @0the0ambient0
    @0the0ambient0 4 года назад

    Great series. Thanks.

  • @andrew.schaeffer4032
    @andrew.schaeffer4032 3 года назад

    Thanks so much for putting this together. Question: Do you know if there's any way to be able to control the color of an svg that's been embedded as an image like ? I tried putting custom css variables in the fill and height section of the svg before embedding the image as an svg - but the svg doesn't seem to link to the stylesheet. But how cool would that be eh?

  • @mycomputerfund
    @mycomputerfund 6 лет назад

    Appreciate the video as always. Keep up the good work :)

  • @downrodeo
    @downrodeo 5 лет назад

    Thanks for these Kevin. Appreciate it!

  • @mirlamontano6640
    @mirlamontano6640 4 года назад

    great video!!

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

    Thanks Kevin!

  • @AdamCClark
    @AdamCClark 4 года назад

    Well done!!!

  • @everettmusicdojo
    @everettmusicdojo 5 лет назад

    Awesome! Thanks so much. I cant wait to start coding!

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

    This is excellent

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

    Great video. Thank you!

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

    Hope this helps a friend of mine's that I have helping me with my logo designs. I've sent him your video in hopes that he can learn to send an SVG file to the lady doing my logo. Thanks

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

    Show this to your friends if they really think the earth is flat. 4:51

  • @Jade-gj4tn
    @Jade-gj4tn 3 года назад

    tysm this was so easy to understand

  • @mohammedriyazuddin5649
    @mohammedriyazuddin5649 6 лет назад

    you have clarity 😊

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

    Thanks a lot for this vid! I helped me tons!

  • @bbzitopirulito8915
    @bbzitopirulito8915 5 лет назад

    Nice, man! You are awesome!

  • @milanm6538
    @milanm6538 6 лет назад

    Super interesting, and nice explained! Can we import SVGs from the file?

    • @KevinPowell
      @KevinPowell  6 лет назад +1

      If you have an SVG, you should be able to open it up in your text editor without issue to get the code :).

  • @hugocsl
    @hugocsl 6 лет назад

    Hey yo Kevin, thx for that great video man! I have a question, there is a way to keep this SVG symbols in some kind of "sprite", (in one huge external file), and still be able apply some CSS in it by SVG+href from that external symbol file? So, can I call this symblo from oneother file an still can put some CSS in it like fill color or stroke?

    • @KevinPowell
      @KevinPowell  6 лет назад +1

      When I look at making an icon system, I'll explore using a sprite as well as other ways. If it's an external file though, there isn't much you can do to style it.

    • @hugocsl
      @hugocsl 6 лет назад

      Ok Kevin anyway that is a cool tip ;)

  • @tenminutetokyo2643
    @tenminutetokyo2643 4 года назад

    Used to work with the guy who wrote the O’Reily book - Eisenberg.

  • @abed-almajeedmansour9015
    @abed-almajeedmansour9015 5 лет назад

    Thanx bro .. you helped me a lot with the tutorial and resources

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

    According to caniuse, is now supported by Safari