The Right Way to Animate SVG in React

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 19

  • @Cypekeh
    @Cypekeh 11 หลายเดือนก่อน +5

    SVGs being from 2001 is old? I thought they were from the early 90s or 80s like most things in CS :D (HTML, Python, vim, Haskell)
    As for the animations however, amazing explanation. I did use framer motion in a project recently, but I didn't thought of applying it to SVGs. It looks sick

  • @shahbazahmadsiddiqui
    @shahbazahmadsiddiqui 11 หลายเดือนก่อน +1

    Great explanation video... I use Framer Motion to animate SVGs too...

  • @nano_org
    @nano_org 5 หลายเดือนก่อน

    Nice video, thanks

  • @Schmexy
    @Schmexy 8 หลายเดือนก่อน

    Awesome video! What do you use to preview SVG in VSCode?

    • @Smeali
      @Smeali 8 หลายเดือนก่อน

      5:59 SVG Preview

  • @Diego_Cabrera
    @Diego_Cabrera 11 หลายเดือนก่อน +3

    Nice explanation. I used framer motion in many of my projects as well. Keep it up!

  • @tangflx
    @tangflx 7 หลายเดือนก่อน +1

    oh my this video saved my life. i was using chatgpt to animate each polygon. it was nightmare. didnt know framer motion exits!

  • @laptopuser5198
    @laptopuser5198 9 หลายเดือนก่อน +1

    Great video, the best part is mapping the the power field.

  • @ЦзинКэ-ы5х
    @ЦзинКэ-ы5х 6 หลายเดือนก่อน

    Thanks! You are very straightforward and clear, unlike Framer Motion documentation.

  • @loupa6128
    @loupa6128 6 หลายเดือนก่อน

    Nice video. Is there a way to animate SVG or change current animation using something like onClick/onTap in framer-motion? I can't find anything.

    • @ЦзинКэ-ы5х
      @ЦзинКэ-ы5х 6 หลายเดือนก่อน

      You can animate something by using a deconstructed object with animation parameters and modify that object on demand in hook, I believe.

  • @thyaghito
    @thyaghito 8 หลายเดือนก่อน

    Always wanted to do this simple animations without use lottie! thank you!

  • @tamerahmed9860
    @tamerahmed9860 4 หลายเดือนก่อน

    Great efforts! Thank you

  • @athuljonnie
    @athuljonnie 8 หลายเดือนก่อน

    Hey, is it possible to make this component as a background for a div?
    edit: typo

    • @ЦзинКэ-ы5х
      @ЦзинКэ-ы5х 6 หลายเดือนก่อน

      You can do background: url(%svg%) in CSS, if I understood your question right.

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 4 หลายเดือนก่อน

    Thank you

  • @alem182
    @alem182 10 หลายเดือนก่อน

    Buenisimo, gracias!!

  • @ashik_dev
    @ashik_dev 11 หลายเดือนก่อน

    Nice video...

  • @grubbsgaben4461
    @grubbsgaben4461 5 หลายเดือนก่อน +1

    Typical programmer guide: cut out the part where he actually writes the stuff, that we came to see how to do.