Last active
March 7, 2023 07:34
-
-
Save twhite96/1ac1b4b880eb0f4b4e2b3cf9bba6a2f3 to your computer and use it in GitHub Desktop.
Skew highlights on text
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
h1 span { | |
position: relative; | |
z-index: 1; | |
} | |
h1 span::before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: -5px; | |
right: -5px; | |
background-color: #b393d3; | |
transform: skew(-15deg); | |
z-index: -1; | |
} | |
h1 span::before { | |
transform: skew(15deg,-2deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment