+ 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

14th Jun 2020, 6:58 AM
Habeebullahi Olalekan Lawal
Habeebullahi Olalekan Lawal - avatar
2 ответов
+ 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));">
14th Jun 2020, 7:19 AM
JaScript
JaScript - avatar
+ 3
-webkit-box-reflect: below 0 linear-gradient(transparent, white); https://code.sololearn.com/WGMbT4XgUAKF/?ref=app
14th Jun 2020, 8:42 AM
Calviղ
Calviղ - avatar