Creating and Animating an SVG Mask

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

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

  • @vijayroy93
    @vijayroy93 2 ปีที่แล้ว +4

    Never seen such easy explanation before. You just take out the complexity from the subject and make it breeze. ❤️

  • @manurecaok
    @manurecaok 3 ปีที่แล้ว +3

    Just found this less than 15 minutes GEM and went along with it. You've seriously helped me a lot. THANK YOU! :D ♥

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว +2

      Love hearing that! Glad you found it helpful

    • @manurecaok
      @manurecaok 3 ปีที่แล้ว

      @@SelfTeachMe Yeah! 🙌 Sorry to bother you but since we're on topic, do you have any content covering masking with lottie animations (made with Bodymovin in After Effects)? Searched all the morning but haven't found anything related to it that's as easy to understand as this was.

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว +2

      What kind of masking are you trying to do? Use the Lottie file as a mask?

    • @manurecaok
      @manurecaok 3 ปีที่แล้ว

      @@SelfTeachMe Exactly; animated a path then tried to apply this tutorial. But the method fails (surely because of my lack of knowledge) because the export doesn't get me a tag with an ID that parents a tag 😅
      So I kind of searched other ways of selecting from css but alas, couldn't find my answer.
      > I'm an animator with some html css & basic js knowledge 😅
      Btw thank you for answering!
      Edit: grammar

    • @LuukBod
      @LuukBod ปีที่แล้ว

      @@manurecaok Have you ever found the answer to this? I'm currently facing the exact same issue!

  • @СергейМаркелов-м7м
    @СергейМаркелов-м7м 3 ปีที่แล้ว +1

    Damn why you don't have a millions of subscribers??
    You really deserved that because content and the way you are explaining things are awesome!

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว

      Thanks, I appreciate that!

    • @thewebspatialist
      @thewebspatialist 9 หลายเดือนก่อน

      My thoughts exactly...

  • @tiangersbach
    @tiangersbach 2 ปีที่แล้ว

    wow! this is love at first sight ;)
    Love the way you made this excercise, explanation, and well documented tuto. You're a great speaker. Thanks!

    • @SelfTeachMe
      @SelfTeachMe  2 ปีที่แล้ว

      Thanks so much! 😊

  • @lefxxwill7740
    @lefxxwill7740 3 ปีที่แล้ว +1

    this video was so short but i learned so much! thank you

  • @burmesepotato447
    @burmesepotato447 3 ปีที่แล้ว +1

    I have been finding ways how to tackle that wave animation. Amazing personality and tutorial ! Thank you!

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว

      Awesome! Glad you found it helpful!

  • @friedrichsiever5964
    @friedrichsiever5964 9 หลายเดือนก่อน

    Wonderful done. Thanks a million!

  • @cassieselin983
    @cassieselin983 9 หลายเดือนก่อน

    Excellent explanation, thanks!

  • @carfox1860
    @carfox1860 ปีที่แล้ว

    Great video! Thanks!

  • @jonathanrojaslopez22
    @jonathanrojaslopez22 4 ปีที่แล้ว +1

    Great video and good explanation!! Thank you!!

  • @GustavoBica
    @GustavoBica ปีที่แล้ว

    Great content! Super well explained and complete.

    • @SelfTeachMe
      @SelfTeachMe  ปีที่แล้ว

      Awesome! Glad you found it helpful!

  • @huyvuduc791
    @huyvuduc791 3 ปีที่แล้ว +1

    Great video! thanks so much from JP

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว

      You're welcome! Glad you liked it.

  • @amrutaparab4939
    @amrutaparab4939 9 หลายเดือนก่อน

    Nice video. Is it possible to reverse this wave? like i want the image to be at the bottom (in the white part) and I want the part where the image is currently, to be white. Any help appreciated.

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

    Thank you!! Liked, subscribed!

  • @kevinhe8188
    @kevinhe8188 2 ปีที่แล้ว

    really inspired by your video, super good,:)
    And I have met a problem too, for i used a path as clip path to mask an image,the clip path is always on the top left corner of the image, yes, i can scale to let it mask whole image , but that's too big, so my question is can i re-positioning the path ? thanks

  • @thewebspatialist
    @thewebspatialist 9 หลายเดือนก่อน

    You just make it all seem too easy...thank you

  • @klirmio21
    @klirmio21 ปีที่แล้ว

    Holy shit this was sooooo goooooodddd goddamit

    • @SelfTeachMe
      @SelfTeachMe  ปีที่แล้ว

      Glad you found it helpful!

  • @marknikolsky9352
    @marknikolsky9352 3 ปีที่แล้ว +1

    You are very cool speaker!

  • @nickwoodward819
    @nickwoodward819 2 หลายเดือนก่อน

    cool video, thanks! why 1440x595 tho?

    • @nickwoodward819
      @nickwoodward819 2 หลายเดือนก่อน

      my hero image is set to full screen, so not sure how to deal with the height :/

  • @alvarosuareztrabanco5400
    @alvarosuareztrabanco5400 3 ปีที่แล้ว

    Hi! Thanks A LOT for this video. It really helped me. Is there a way to preserve the aspect ratio of the clip path? preserveAspectRatio in the SVG doesn't help.

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว

      I'm not sure if this is exactly what you're looking for or not, but it looks like you need to preserve the aspect ratio of the image itself, not necessarily the clipPath. Take a look at this (forked) CodePen: codepen.io/ahaywood/pen/ExmBxeq The only thing I changed was the height property (CSS) on the img tag. It now scales and maintains it aspect ratio.

    • @alvarosuareztrabanco5400
      @alvarosuareztrabanco5400 3 ปีที่แล้ว

      @@SelfTeachMe Hi! thanks a lot for the effort you took. I was clipping a div with a background that is part of a css grid. I was defining the height of the row through grid-template-rows. It's a little very specific case and I'd be solving it by including the image itself (which as you shown preserves the aspect ratio of the svg). Thanks!

    • @AmyHaywoodDutton
      @AmyHaywoodDutton 3 ปีที่แล้ว +1

      @@alvarosuareztrabanco5400 Awesome! Glad you got it working!

  • @suleymanbayram1639
    @suleymanbayram1639 ปีที่แล้ว

    when i see like you people who always be happy and energy i am always jealous you guys. :)

  • @KenoldBeauplan
    @KenoldBeauplan 4 ปีที่แล้ว

    Wow! so easy! I just created something similar with position relative/absolute. It took me forever. Thank you.

    • @SelfTeachMe
      @SelfTeachMe  4 ปีที่แล้ว

      That's awesome!! Excited for you.

  • @olegkoselev6975
    @olegkoselev6975 3 ปีที่แล้ว

    Hi )) really nice tutorial ))
    but unfortunately morphing with clip path is not working for safari. I am using KUTE.js and its not working as well same as GSAP (at least codepen you created is not running for me). Am I missing anything or its really the case? Thanks for every advice ;)

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว

      Hey Oleg! It looks like there are some issues with this particular feature of Green Sock and Safari. I did a little Googling and several people have reported problems. Sorry for the trouble.

  • @digital360europes.r.l7
    @digital360europes.r.l7 4 ปีที่แล้ว

    Great! Thank you so much!!!

    • @SelfTeachMe
      @SelfTeachMe  4 ปีที่แล้ว

      You're welcome! Glad you liked it.

  • @barry-yo6752
    @barry-yo6752 4 ปีที่แล้ว

    My logo file ,, why using

    • @SelfTeachMe
      @SelfTeachMe  4 ปีที่แล้ว

      There are several things that might be causing this. Are you running a local server? Is your html in the same directory as your image folder?

    • @barry-yo6752
      @barry-yo6752 4 ปีที่แล้ว

      @@SelfTeachMe yes local server , I was save same project directory , but have crate name file is : image ,, and than saving inside , than copy this path ,that copy have past to image

    • @barry-yo6752
      @barry-yo6752 4 ปีที่แล้ว

      before : image="images-na.ssl-images-amazon.com/images/G/01/AmazonExports/Fuji/2020/May/Dashboard/Fuji_Dash_Electronics_1x._SY304_CB432774322_.jpg".
      that is ok !
      after : image ="/Users/yutungcheng/project_front/Amazon/amazone-clone/image/2015Macbook.png".
      but appear " only free space "

  • @AgustinGiannastasio
    @AgustinGiannastasio 3 ปีที่แล้ว

    awesome

    • @SelfTeachMe
      @SelfTeachMe  3 ปีที่แล้ว

      Yeah!! Glad you enjoyed it.

  • @Mike-jq7os
    @Mike-jq7os 2 ปีที่แล้ว

    Wow

  • @dimadiv6583
    @dimadiv6583 2 ปีที่แล้ว

    Дякую!

  • @RDaneelOliwav
    @RDaneelOliwav 4 ปีที่แล้ว

    Thanks, very nice explanation
    I really dislike greensock though

    • @SelfTeachMe
      @SelfTeachMe  4 ปีที่แล้ว

      Thanks for the comment... any particular reason why you don't like Greensock? What's your alternative?

  • @_Greenflag_
    @_Greenflag_ 2 ปีที่แล้ว

    Well you use a plugin so we don't understand how it works : /

  • @GhostsOfSparta
    @GhostsOfSparta 2 ปีที่แล้ว

    Madam!
    The title says Mask, but you've shown CSS "clip" ⁉ 👿

    • @SelfTeachMe
      @SelfTeachMe  2 ปีที่แล้ว

      Ahh, sorry for the confusion. I was thinking about a mask from a design perspective and not from a coding / implementation standpoint.