Understanding SVG viewBox and viewport

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

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

  • @rorysimmonds
    @rorysimmonds 10 месяцев назад +3

    This video did a WAY better job of explaining these concepts than all of the other resources I've seen so far (some of which you showed previews of).
    Massive thanks for putting this together!

    • @snorklTV
      @snorklTV  10 месяцев назад +1

      Awesome. So glad you liked it!

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

    Brilliant! Crisp, clear and sharp tutorial. Crisp presentation, clear in explanation and sharp and quickly to the point, many thanks I now understand viewBox much better.

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

      Thanks so much for watching and commenting. So glad it helped.

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

    thank you so much for the amzing content bud, this is a treasure wish you the best man

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

      It’s so good to be appreciated. Thx so much for watching and the nice comment.

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

    Learn Everything I know about GreenSock for only $2.95/mo
    www.creativecodingclub.com/bundles/creative-coding-clubs?src=viewBox

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

    Thank you very much. finally what i was looking for. your the man

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

    amazing example!

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

    Thank you very much, your videos are always clear to understand for newbies like me! :)

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

      So glad you enjoyed it. Thx so much for the feedback!

  • @JahirulIslamMamun
    @JahirulIslamMamun Год назад +1

    absolutely awesome, thanks a lot.

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

    Thanks bro, you're an absolute legend!

    • @snorklTV
      @snorklTV  Год назад +1

      Glad you liked it. Thx for watching.

  • @MaxMov-sp8hr
    @MaxMov-sp8hr 9 месяцев назад

    Dog hack is awesome! 😂 Good job, bro! 🤜

  • @zhenquan1846
    @zhenquan1846 6 месяцев назад +1

    wonderful stuff, thank you so much.

    • @snorklTV
      @snorklTV  6 месяцев назад

      Glad you liked it.

  • @Tailsxz
    @Tailsxz 6 месяцев назад

    Thank you so much!!!!!

  • @hyposlasher
    @hyposlasher 11 месяцев назад

    thank you

  • @Tony.Nguyen137
    @Tony.Nguyen137 2 года назад

    @4:35 so you removed the viewport height and size of 200px. The svg stretchs to the body element, therefore its no longer 200x200 and the squares are no longer 100x100, right? So how comes the viewBox coordinates 100 100 100 100 give you the fish? If u didn’t remove the width and height 200x200 then it would make sense to me.

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

      Thank you for watching so carefully. It is a tricky subject but things are all working as they should as I demonstrated. SVG images have multiple coordinate systems. The viewBox coordinates of 100 100 100 100 are the "real" coordinates of the svg based on how it was originally designed, not how it is displayed in the browser according to the current view port settings. This whole subject took me awhile to fully understand. I strongly recommend this article by Sara Souiedan if you want to get more technical: www.sarasoueidan.com/blog/svg-coordinate-systems/ Thanks again for watching!