How to add complex image masking to website images with CSS clip-path and Figma

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

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

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

    Your content of building websites effects from scratch is what brings me back! Great teacher and lessons. Thanks!

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

      Thank you! We have more videos coming, including one tomorrow, so keep watching and sharing!

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

    This was awesome, thank you so much @SuperHi I never really understood the objectBoundingBox but now it all makes sense.

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

      Glad it helped! It's an incredibly versatile thing, isn't it?

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

      @@SuperHi yes! so many cool options, the perfect example of how to create a big impact with a simple concept. Thanks again.

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

    awesome! thanks a lot!

  • @gilsonconceicao5201
    @gilsonconceicao5201 2 หลายเดือนก่อน +1

    Very nice. Thanks

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

    Tutorials that never disappoint! What if I was building in Webflow and using a CMS collection and want to randomise the clipping paths on all the collection items?

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

    Thank you so so so so so so so so so so so so so so so much!!!!

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

    Good title!

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

      I know, right? Thanks for your help on it btw! Ending up adding a bit of both options in!

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

    Thank you so so so so so so so so so so so so so so so much!

  • @riteshkc814
    @riteshkc814 3 หลายเดือนก่อน

    thanks been scratching my head for hours to implement a design 🥴🥴

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

    Legend!

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

    Great tutorial! What's the reason you changed the ratio of the squiggle to 1:1 and reduced it's size to 1px x 1px in Figma?

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

      We just like tiny SVGs... not really, the real reason is that when we add objectBoundingBox, it's basing the clip on a 0-1 scale in the path and then scaling it up to fit, so essentially it's converting it to a percentage based system over a pixel based on when we add the objectBoundingBox so our SVG needs to match this system so it can scale with the image sizes

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

      Thanks for explaining@@SuperHi. Is there a reason we change the aspect ration 1:1 when the image the mask is being placed over is not 1:1?

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

      @@andrewshannon1169 Think of the 1x1 as a percentage that's stretching over the image, so if something is at 0.9px across and 0.8px down, it would mask the final image at 90%, 80% co-ordinates. The aspect ratio of the 1x1 isn't fixed, it's stretchy so it depends on the final image's aspect ratio

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

    I wish you would’ve shown if it was responsive...

  • @jv-wd4po
    @jv-wd4po 2 หลายเดือนก่อน

    hey so i have an issue when there is a border-radius applied on the shapes. They appear huge on the site. Do you know any fix for this?

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

    im trying to put a shine effect on top of it when we hove on the image. doesn't work. Any thoughts?