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

preview_player
Показать описание
You may have seen image masks on sites like Abbotsford Convent or Creative Lives in Progress – of course you can prepare images manually but why not make it easy and flexible by letting CSS do the work! In this tutorial, Rik will show you how to add both simple and complex image masking by taking a Figma prepared SVG and implementing with CSS clip-path.

00:00 Intro
00:33 Basic mask shapes
03:26 Kylie alert
03:32 Complex mask shapes
15:30 Outro

Links:

Demo:

Download:

Photos by Agustín Farías on Death to Stock:
Рекомендации по теме
Комментарии
Автор

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

hellothere
Автор

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

pablocortes
Автор

I'm currently looking to do this exact same thing but I also found the you can do a similar thing with mask-image, what are the differences between this two?

GracielaFaz-so
Автор

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

bruhmoment
Автор

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

asifreza
Автор

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?

two-k
Автор

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

growwithdesign
Автор

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?

jv-wdpo
Автор

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

riteshkc
Автор

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?

andrewshannon
Автор

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

jmg