Skip to content

Instantly share code, notes, and snippets.

@hand-dot
Last active August 19, 2024 09:34
Show Gist options
  • Select an option

  • Save hand-dot/c61c4a5d60e84e41f8392274ed072d56 to your computer and use it in GitHub Desktop.

Select an option

Save hand-dot/c61c4a5d60e84e41f8392274ed072d56 to your computer and use it in GitHub Desktop.
Wix Custom CSS
.card {
perspective: 1000px;
cursor: pointer;
}
.card-inner {
position: relative;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.card-front {
z-index: 1;
background-color: #3498db;
}
.card-back {
z-index: 2;
background-color: #2ecc71 !important;
transform: rotateY(180deg);
}
.card:hover .card-inner {
transform: rotateY(180deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment