micku7zu/vanilla-tilt.js

Glare effect rectangle

paulzz3000 opened this issue · 2 comments

Using a non-rectangular image / svg with glare on. Glare appears as a rectangle which is fine on a white background but conspicuous otherwise. Any way to clip the glare to the image's opaque area?

Don't know exactly your case, but one solution could be to use clip-path or mask-image on ".js-tilt-glare" element.