Skip to content

Commit

Permalink
Adding a Spread & Bottom Reflect to the Images
Browse files Browse the repository at this point in the history
  • Loading branch information
NewmanAdesan committed Dec 15, 2023
1 parent 8ca2a27 commit d8b69ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ img {
width: 200px;
height: 200px;
object-fit: cover;
user-select: none;
}

body {
Expand Down Expand Up @@ -37,5 +38,6 @@ body {
height: 100%;
transform-origin: center;
transform-style: preserve-3d;
transform: rotateY(calc(var(--i) * 45deg))
transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
-webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #0004);
}

0 comments on commit d8b69ee

Please sign in to comment.