A simple button interaction where the first layer slides and rotates out while the second layer moves in from the opposite side.
Right-click in Elementor, choose “Paste from another site,” and while the popup is open, press cmd/ctrl + v to insert the layout.
Paste the code through the page or site settings, or add it via Elementor → Custom Code before body tag.
/* transition */
[data-oura-button-06="button"],
[data-oura-button-06="label-1"],
[data-oura-button-06="label-2"] {
will-change: transform;
transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
[data-oura-button-06="label-1"],
[data-oura-button-06="label-2"] {
transform-origin: bottom center;
}
/* default */
[data-oura-button-06="label-1"] {
transform: translateX(0%) translateY(0%);
}
[data-oura-button-06="label-2"] {
transform: translateX(-120%) translateY(60%);
}
/* hover */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
[data-oura-button-06="button"]:hover [data-oura-button-06="label-1"] {
transform: translateX(120%) translateY(60%);
}
[data-oura-button-06="button"]:hover [data-oura-button-06="label-2"] {
transform: translateX(0%) translateY(0%);
}
}
/* click */
[data-oura-button-06="button"]:active {
transform: scale(0.94);
}Some solutions only work on the live site. Always publish and test after each change, as results may not appear in the editor.