-
-
Save pehaa/35d9d28699681f2c0bf0400fb825315d to your computer and use it in GitHub Desktop.
Add interaction to WordPress gallery block
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
.wp-block-gallery img { | |
transition: 1s; | |
} | |
.wp-block-gallery:hover img { | |
transform: scale(.95); | |
filter: grayscale(100%); | |
} | |
.wp-block-gallery img:hover { | |
filter: grayscale(0%); | |
transform: scale(1); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment