Created
December 28, 2022 06:06
-
-
Save SreemaanKCKS/9c879aea635acc5d6165d34108a53433 to your computer and use it in GitHub Desktop.
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
.floating-wheel { | |
position: absolute; | |
bottom: 0; | |
right: 0; | |
width: 10rem; | |
height: 10rem; | |
transition: all 0.3s ease; | |
transform-origin: bottom right; | |
transform: scale(0); | |
} | |
.floating-checkbox:checked ~ .floating .circle-icon { | |
position: absolute; | |
height: 32px; | |
width: 32px; | |
background-color: red; | |
border-radius: 50%; | |
top: 25%; | |
left: 25%; | |
border: 2px solid white; | |
} | |
.floating-checkbox:checked ~ .floating-wheel { | |
transform: scale(1); | |
} | |
.floating-action { | |
position: absolute; | |
background: #0A9928; | |
width: 3rem; | |
height: 3rem; | |
border-radius: 50%; | |
border: 2px solid white; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
color: White; | |
cursor: pointer; | |
box-shadow: 0 0.1rem 1rem rgba(24, 66, 154, 0.82); | |
transition: all 1s ease; | |
opacity: 0; | |
} | |
.floating-checkbox:checked ~ .floating-wheel .floating-action { | |
opacity: 1; | |
} | |
.floating-wheel .floating-action-1 { | |
right: -1rem; | |
top: 0; | |
} | |
.floating-wheel .floating-action-2 { | |
right: 3.4rem; | |
top: 0.5rem; | |
} | |
.floating-wheel .floating-action-3 { | |
left: 0.5rem; | |
bottom: 3.4rem; | |
} | |
.floating-wheel .floating-action-4 { | |
left: 0; | |
bottom: -1rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment