Created
January 4, 2022 09:49
-
-
Save marcusig/dcaaa1623339e6e5cb73b7da029bed3a to your computer and use it in GitHub Desktop.
Animate a layer in and out when changing a selection.
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
/* | |
The Layer must have a specific class to target the images. | |
In this example, we use the class "bezel" | |
See it working on http://demos.mklacroix.com/configurable-watch/ | |
*/ | |
.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
This will move the angle selector to the bottom corner on the Float or WSB theme.
You can adjust the exact position by changing the bottom and left values.