Created
March 25, 2024 22:27
-
-
Save tdmrhn/c2f57eb120816382ace980b4b9011fba to your computer and use it in GitHub Desktop.
Blocksy Card Hover background transition from left
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
.entry-card.type-project {overflow: hidden; position: relative } | |
.entry-card.type-project::after { position: absolute; content: ""; top:0; left:-100%; width: 100%; height: 100%; background-color:var(--theme-palette-color-1); z-index: 1; transition: all 1s ease; } | |
.entry-card.type-project:hover::after { left: 0; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment