galaxy/Toggle-switches/Tsiangana_massive-snail-12.html

208 lines
No EOL
5.4 KiB
HTML

<label class="switch">
<input type="checkbox" />
<span class="slider">
<div class="fug">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
class="nav bi bi-rocket-takeoff-fill"
viewBox="0 0 16 16"
>
<path
d="M12.17 9.53c2.307-2.592 3.278-4.684 3.641-6.218.21-.887.214-1.58.16-2.065a3.578 3.578 0 0 0-.108-.563 2.22 2.22 0 0 0-.078-.23V.453c-.073-.164-.168-.234-.352-.295a2.35 2.35 0 0 0-.16-.045 3.797 3.797 0 0 0-.57-.093c-.49-.044-1.19-.03-2.08.188-1.536.374-3.618 1.343-6.161 3.604l-2.4.238h-.006a2.552 2.552 0 0 0-1.524.734L.15 7.17a.512.512 0 0 0 .433.868l1.896-.271c.28-.04.592.013.955.132.232.076.437.16.655.248l.203.083c.196.816.66 1.58 1.275 2.195.613.614 1.376 1.08 2.191 1.277l.082.202c.089.218.173.424.249.657.118.363.172.676.132.956l-.271 1.9a.512.512 0 0 0 .867.433l2.382-2.386c.41-.41.668-.949.732-1.526l.24-2.408Zm.11-3.699c-.797.8-1.93.961-2.528.362-.598-.6-.436-1.733.361-2.532.798-.799 1.93-.96 2.528-.361.599.599.437 1.732-.36 2.531Z"
></path>
<path
d="M5.205 10.787a7.632 7.632 0 0 0 1.804 1.352c-1.118 1.007-4.929 2.028-5.054 1.903-.126-.127.737-4.189 1.839-5.18.346.69.837 1.35 1.411 1.925Z"
></path>
</svg>
</div>
<div class="stars">
<svg
xmlns="http://www.w3.org/2000/svg"
width="4"
height="4"
fill="#fff"
class="star bi bi-star-fill"
viewBox="0 0 16 16"
>
<path
d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"
></path>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="4"
height="4"
fill="#fff"
class="star bi bi-star-fill"
viewBox="0 0 16 16"
>
<path
d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"
></path>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="4"
height="4"
fill="#fff"
class="star bi bi-star-fill"
viewBox="0 0 16 16"
>
<path
d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"
></path>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="4"
height="4"
fill="#fff"
class="star bi bi-star-fill"
viewBox="0 0 16 16"
>
<path
d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"
></path>
</svg>
</div>
</span>
</label>
<style>
/* From Uiverse.io by Tsiangana - Tags: switch, space, futuristic, animated */
/* The switch - the box around the slider */
.switch {
font-size: 17px;
position: relative;
display: inline-block;
width: 3.5em;
height: 2em;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding-top: 5px;
background-color: rgb(199, 219, 215);
transition: 0.4s;
border-radius: 30px;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
border: 1px solid #fff;
}
.slider .fug .nav {
position: absolute;
height: 1.4em;
width: 1.5em;
left: 0.3em;
bottom: 0.3em;
transition: 0.4s;
z-index: 10;
transform: rotate(45deg);
fill: #fff;
}
.switch input:checked + .slider {
background-color: #2b4360;
}
.switch input:focus + .slider {
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.switch input:checked + .slider .fug .nav {
transition: 0.4s;
transform: translateX(1.3em) rotate(45deg);
padding: 3px;
animation: 4s nav linear infinite;
}
@keyframes nav {
0% {
transform: translateX(1.3em) rotate(45deg);
}
10% {
transform: translateX(1.1em) rotate(45deg);
}
30% {
transform: translateX(1.2em) rotate(45deg);
}
50% {
transform: translateX(1em) rotate(45deg);
}
70% {
transform: translateX(1.2em) rotate(45deg);
}
80% {
transform: translateX(1em) rotate(45deg);
}
90% {
transform: translateX(1.2em) rotate(45deg);
}
100% {
transform: translateX(1.3em) rotate(45deg);
}
}
.star {
opacity: 0;
transition: 0.2s linear;
}
.switch input:checked + .slider .star {
opacity: 1;
transition: 0.2s linear;
animation: 2s piscar linear infinite;
}
.star:nth-last-child(1) {
position: absolute;
top: 7px;
left: 13px;
}
.star:nth-last-child(2) {
position: absolute;
top: 14px;
left: 19px;
}
.star:nth-last-child(3) {
position: absolute;
top: 18px;
left: 9px;
}
.star:nth-last-child(4) {
position: absolute;
top: 23px;
left: 24px;
}
@keyframes piscar {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>