How to create SVG shapes [ A beginners guide to SVG part 2 ]

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

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

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

    I probably won't say what has already been said but again, very clear, concise video in just the right moment. You are a gift to FE developers

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

    You demystified SVG by gradual explanation of every little concept going from raster to vector representation until how to draw a shape , you even paid attention for people who may have seeing or hearing troubles , very professional videos that looks spontaneous.
    Many thanks Kevin

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

    Kevin, Your tutorials are so simple. Thank you very much. I used to run from svg files, but seeing this broke that fear.
    Thanks again!

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

    I know this is an old video, but it's a nice introduction to SVG for me. I recently built a countdown clock with a progress ring. I knew how to build the clock, but didn't know how code a progress ring; so I had to search how to do that. The search results I found used this method of a circle inside an SVG element; I didn't understand what I was following, but was able to complete clock by following the examples. So now, I'm coming back to see how this actually works. Your explanation of the seemingly minor details helped a lot - I found myself saying " aha... that's why..", on more than one occasion. Thank you!

  • @vesna.simeunovic
    @vesna.simeunovic Год назад

    Kevin, you are a life saver! Your videos are so detailed, informative, so simple and easy to understand. Thank you so much! SVG just blow my mind

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

    OK, I'm ready for Part 3!

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

    Brilliant stuff Kevin.
    I've just gotten into SVG's and this has answered so many of my noon questions.
    Cheers mate!

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

    Kevin, you are fantastically Awesome in SVG

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

    Thank you. This is a great explanation of SVG.

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

    I'm a graphic designer so im extremely familiar with illustrator. this is a godsend

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

    I've been fearing svg. I used illustrator, but the coding part has scared me. Thank you :)

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

      Same here, but it isn't so bad, and once you understand it, it makes it easier to deal with once you're done in illustrator

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

    SVGs slowly loose their mystery! Thanks Kevin!

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

    Thank you, Kevin.

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

    Awesome tutorial

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

    I think you should give PHPStorm a spin for the rest of the SVG series. Don't worry about learning PHPstorm, just open your SVG and edit away. The autocomplete is good plus you can reformat your code to pretty print. However, the killer feature is the preview pane complete with Photoshop style grid. Should look better on the videos, plus CTRL+S refreshes the preview. The other top tip for working with SVGs is to work in Chrome in Workspaces mode, that silently reloads your CSS and images if you update them. Handy if you have inlined your SVGs into CSS... Look forward to the rest of the series including how you do the viewbox. Keep it up, great series!

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

      Thanks for the suggestion! It sounds really useful, I might have to check it out :)

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

      Another must watch for mastering SVGs is Lea Verou's latest talk. This shows how to get SVGs into a stylesheet so they are maintainable and don't add document weight or require extra downloads. I think she also mentions the sepia trick for colouring them too. ruclips.net/video/vs34f9FiHps/видео.html

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

      Oh, I'll have to check that out, many thanks for sharing the link. I'm a big fan of her stuff!

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

    Took good Sir Thumbs up, All your tutorials are very easy to learn and understandable, thank you

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

    Simple and great explaination

  • @cowcow505
    @cowcow505 5 лет назад +1

    this is phenomenal

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

    easy to listen to, super helpful. Thank you!

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

    Wow I!!! Very clear… excellently explained.

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

    Excellent Kevin. I learned a lot from it.

  • @taiwanSmart
    @taiwanSmart 5 лет назад +1

    very clear and great explanation, thank you!

  • @cap.blue-97sama99
    @cap.blue-97sama99 4 года назад

    Thanks buddy for the explanation!!

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

    Kevin, your are great! Thank you very much bro!

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

    Thanks man, extremely good explaination

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

    You are a Guru indeed!!

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

    Thank you Kevin. Great tutorial!

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

    thanks for keeping the spelling mistakes in the final cut. also thanks for the follow up on Twitter.

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

    Nicely explained. Thank you 👍

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

    we want more videos on svgs

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

    great vid bro! can't wait for more on this!

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

    very good work sir!

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

    clarify this! the x axis goes from left to right and y axis goes from top to bottom? ( normally y axis is from bottom to top but not on svg) right?

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

    is there any difference on working with inkscape svg instead of coding the file? I ussualy code only basic shapes for logos icons and other stuff use inkscape (plain svg file). My questions is, this "plain svg" will work excatly as a non inkscape svg or not.

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

      It should do. Any Inkscape only things won't work. Also, some effects are rendered differently depending on the software. The SVG format has a standard definition.

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

    Awesome tut. Thanks!

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

    thank you for a nice tutorial. It really help

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

    Thank you so much!!! What tool do you use for creating SVGs? inkskape?

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

    thank you

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

    Damn , thank you man

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

    Very awesome , regard the closing circle tag , is this also apply in the video tag

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

    Kevin pls what tool do you use to create svg files? I mean really complex svg

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

    Vídeo Incrível! Obrigado!

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

    Kevin, thank you for the SVG video. I use 100% SVG coding for NatureTrailMaps.net, since 2016. I will gladly share my coding examples. I have found no need for any other coding tools, such as Illustrator, Inkscape, Javascript, PHP etc.

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

      Which resources did you use to learn svgs?

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

    Great video. When I "draw" a rectangle and I want to add a line to it - it doesn't work. Only the rectangle appears, but when I remove the rectangle -> the line appears. (I cannot draw more than one 'object') Any idea why? Thanks in advance!

  • @marcquinagulhas9579
    @marcquinagulhas9579 4 месяца назад

    Genius

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

    Great stuff. :-)

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

    Hi Very interesting video, would it be possible to explain how to create graphs using SVG. Of course, this is extensively used by a lot of libraries like high-charts etc.

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

      I love the idea, but for the moment it's a bit beyond what I know as well. I agree that it can be super useful, and I know there are some libraries for this...

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

      Yes, there are so many libraries. At my work, they implement their own graphs using svg. Before bothering them i would like to know some basics. Ofcourse i can go through their code but its scares shit out of me.

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

    i know that the default cx and cy is 0,0 but why does making the cy to positive goes down but in coordinate system going down is negative?(Any answer is greatly appreciated)

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

      in svgs the x axis is from left to right and y axis is from top to bottom ig?

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

    Thank you, really good stuff. Great

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

    Nice stuff! Keep going. How about text tags in svg?

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

      I wasn't planning on it, but you're not the first to mention it, so I might add that in, but maybe at a later date as an add-on to the series

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

    Kevin please why my emmet is not suggesting svg abbrevations?

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

    I find that polygon works a lot like clip-path: polygon( ) instead of clipping something , its just building a shape from nothing in the viewbox .

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

      I suppose you could make a SVG mask and call that on your SVG.

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

    Woooooooooooooooooooooooooooooow this video is really very benefit

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

    How do we make the circle bigger

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

    How do you create shapes in JavaScript? The mySVG.appendChild(document.createElement("circle")) statement doesn't seem to be working, although it does put the markup in there.

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

    yes yes thankyou so muchhh!!

  • @moto-harmony8083
    @moto-harmony8083 2 года назад

    6:37 Kevin we don't want you to have a stroke.

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

    What code editor are you using for html?

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

    Thks for sharing subscribed

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

      Glad you liked it, thanks for the sub!

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

    At 6:00, why are the black borders showing on the four sides? The width for the svg dom element was 250px, the radius of the circle was 125px. the circle should've fully filled the box on the 4 sides, while showing partially in the corners. I imagine it should look like the first one jsbin.com/mogorepoto/1/edit?html,output
    Is there something like a default padding or margin for svg elements?

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

      With vectors, the default for a stroke is actually half on the inside, half on the outside. I'm not sure if there is a way to change it with SVG to be honest, I've never bothered to look. If you create with vector software, you can toggle the stroke to be centered (like it is here), or outside or inside only.

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

      @@KevinPowell Thanks, great tutorials.

  • @wil-fri
    @wil-fri 6 лет назад

    or download krita and use the vector tools and export the vectorial layer as SVG

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

      I'll be looking at doing that as well :)

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz 6 лет назад

    sketch export a lot attributes that confused me, can you tell something about how sketch show the svg code?

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

      I'll be looking at using software to make SVGs later on :)

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

    bro I know lil bit Vanilla JavaScript n jQuery . i m still try learning new things both . it's benefit to learn React or Vue JavaScript . wch one is better . is it good to learn Bulma and materialize Css frame work too ? .

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

      I'd say learn as much vanilla JS as possible. If you want to learn something like React or Vue, I tend to prefer how Vue approaches things, but React is a lot more popular. Those are more for web apps though. I'd focus on learning the fundamentals of HTML, CSS, JS, then finding a popular framework to add to your arsenal.

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

      thank you so much bro . i will learn pure JavaScript .

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

    i also need some animation with svg..

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

    Smashed the like button... :)

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

    My chrome doesnt seem to want to display the full hight and cuts me off at around 100px. Anyone got any Idea how to fix this?

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

      Curious. Are you setting a size on them?

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

    Yes, Ancap coolors...

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

    💖💖💖💖💖

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

    this looks like a html only version of canvas

  • @SandraYoung-j5b
    @SandraYoung-j5b 2 месяца назад

    Johnson Paul Martin Christopher Perez Linda

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

    does it makes my hairs grey?

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

    x-access, y-access

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

    not every hero wears a cape if you know what i mean

  • @LoisPrice-k4y
    @LoisPrice-k4y 2 месяца назад

    Williams Thomas Harris Joseph Wilson Daniel

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

    You didn't say anything about the software

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

    It is easier than canvas.

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 6 лет назад

    Thanks .... Material.io Crash course ???

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

    I can't help to increase speed for your video, it is too slow...

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

      You should be able to put it up to 2x speed in the video settings

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

    Please explain points clearly.

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

    Why do all this when you can create this in illustrator and export as svg?

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

      I talk about that in another video 😁 but it's good to understand how it works, because you'll want to optimize what comes out of Illustrator. Plus, if you want to do anything like animation you'll want to dive in there and know what you're looking at

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

      Well I personally thinks this is way more fun, to be able to create your own images with just a bit of code - that does not even lose it's graphics when you scale it up.