+ 2
Hi everyone. In CSS, how can I give an image or div a reflection? I checked w3 schools and didn't see it there.
CSS reflection property
2 Antworten
+ 5
<img src="yourImg.jpg" style="border:4px solid red;-webkit-box-reflect:below 8px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white));">
+ 3
-webkit-box-reflect: below 0 linear-gradient(transparent, white);
https://code.sololearn.com/WGMbT4XgUAKF/?ref=app