Created
April 15, 2023 16:39
-
-
Save crazy4groovy/3ace3696e946fce01cea51d905b997cc to your computer and use it in GitHub Desktop.
Make angled list items/boxes/cards with skewY transform (CSS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.item-card { | |
border: 1px solid #464646; | |
transform: skewY(-4deg); | |
} | |
.item-card > * { | |
transform: skewY(4deg); /* reverses the skew effect for children */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment