Image blur
Posted: Tue Jan 03, 2023 11:54 am
I'm working on a store at the moment and would like to have the outer edges of the product images blurred. I have managed to do this on the index pages be using the below css and adding image-blurred-edge class to the product cards.
However, when I try to do the same on the pi-gallery it only blurs 3 of the edges.
Any ideas on what the issue might be or even if there might be a better way to do this?
Code: Select all
.image-blurred-edge {
position: relative;
}
.image-blurred-edge:before {
display:block;
content:'';
position:absolute;
width:100%;
height:100%;
-moz-box-shadow:inset 0px 0px 10px 8px #222;
-webkit-box-shadow:inset 0px 0px 10px 8px #222;
box-shadow:inset 0px 0px 10px 8px #222;
pointer-events: none;
}Any ideas on what the issue might be or even if there might be a better way to do this?