Created
March 14, 2024 09:57
-
-
Save marcusig/bbd53860d33f8173ddbfb78ff31253ff to your computer and use it in GitHub Desktop.
Bezel animation on https://demos.mklacroix.com/configurable-watch/
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
.mkl_pc .mkl_pc_container .mkl_pc_viewer .mkl_pc_layers img.bezel:not(.active) { | |
transform: translateX(calc(-50% - 300px)) translateY(-50%); | |
} | |
.mkl_pc .mkl_pc_container .mkl_pc_viewer .mkl_pc_layers img.bezel.active ~ img.bezel:not(.active) { | |
transform: translateX(calc(-50% + 300px)) translateY(-50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to create the animation as seen on this demo, add the CSS class
bezel
to the layer, and use the above CSS.What it does: