Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Cutting image dinamically Reply To: Cutting image dinamically

#247663
Shikkediel
Participant

Well… not with a transform that I can think of (someone else might) but another approach is to use a clip-path. Inside an SVG (not through CSS) is preferable because that has pretty good support.

Example

The triangle (in fact, the polygon describes everything but the triangle) is responsive to the image but unfortunately the SVG itself is not because a width and height have to be given for it to show correctly.

Maybe another member has some more trickery up their sleeve when it comes to this.