.loading svg polyline {
fill: none;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}
.loading svg polyline#back {
fill: none;
stroke: #ff4d5033;
}
.loading svg polyline#front {
fill: none;
stroke: #ff4d4f;
stroke-dasharray: 48, 144;
stroke-dashoffset: 192;
animation: dash_682 1.4s linear infinite;
}
@keyframes dash_682 {
72.5% {
opacity: 0;
}
to {
stroke-dashoffset: 0;
}
}
fill: none;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}
.loading svg polyline#back {
fill: none;
stroke: #ff4d5033;
}
.loading svg polyline#front {
fill: none;
stroke: #ff4d4f;
stroke-dasharray: 48, 144;
stroke-dashoffset: 192;
animation: dash_682 1.4s linear infinite;
}
@keyframes dash_682 {
72.5% {
opacity: 0;
}
to {
stroke-dashoffset: 0;
}
}
<div class="loading">
<svg width="64px" height="48px">
<polyline points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24" id="back"></polyline>
<polyline points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24" id="front"></polyline>
</svg>
</div>
<svg width="64px" height="48px">
<polyline points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24" id="back"></polyline>
<polyline points="0.157 23.954, 14 23.954, 21.843 48, 43 0, 50 24, 64 24" id="front"></polyline>
</svg>
</div>
Dev_html
Photo
.loader {
width: 64px;
height: 64px;
position: relative;
background: #FFF;
border-radius: 4px;
overflow: hidden;
}
.loader:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 40px;
height: 40px;
transform: rotate(45deg) translate(30%, 40%);
background: #ff9371;
box-shadow: 32px -34px 0 5px #ff3d00;
animation: slide 2s infinite ease-in-out alternate;
}
.loader:after {
content: "";
position: absolute;
left: 10px;
top: 10px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #ff3d00;
transform: rotate(0deg);
transform-origin: 35px 145px;
animation: rotate 2s infinite ease-in-out;
}
@keyframes slide {
0% , 100% {
bottom: -35px
}
25% , 75% {
bottom: -2px
}
20% , 80% {
bottom: 2px
}
}
@keyframes rotate {
0% {
transform: rotate(-15deg)
}
25% , 75% {
transform: rotate(0deg)
}
100% {
transform: rotate(25deg)
}
}
width: 64px;
height: 64px;
position: relative;
background: #FFF;
border-radius: 4px;
overflow: hidden;
}
.loader:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 40px;
height: 40px;
transform: rotate(45deg) translate(30%, 40%);
background: #ff9371;
box-shadow: 32px -34px 0 5px #ff3d00;
animation: slide 2s infinite ease-in-out alternate;
}
.loader:after {
content: "";
position: absolute;
left: 10px;
top: 10px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #ff3d00;
transform: rotate(0deg);
transform-origin: 35px 145px;
animation: rotate 2s infinite ease-in-out;
}
@keyframes slide {
0% , 100% {
bottom: -35px
}
25% , 75% {
bottom: -2px
}
20% , 80% {
bottom: 2px
}
}
@keyframes rotate {
0% {
transform: rotate(-15deg)
}
25% , 75% {
transform: rotate(0deg)
}
100% {
transform: rotate(25deg)
}
}
👍1
Dev_html
Photo
Html :-
<label>
<input type="checkbox" class="slider">
<div class="switch">
<div class="suns"></div>
<div class="moons">
<div class="star star-1"></div>
<div class="star star-2"></div>
<div class="star star-3"></div>
<div class="star star-4"></div>
<div class="star star-5"></div>
<div class="first-moon"></div>
</div>
<div class="sand"></div>
<div class="bb8">
<div class="antennas">
<div class="antenna short"></div>
<div class="antenna long"></div>
</div>
<div class="head">
<div class="stripe one"></div>
<div class="stripe two"></div>
<div class="eyes">
<div class="eye one"></div>
<div class="eye two"></div>
</div>
<div class="stripe detail">
<div class="detail zero"></div>
<div class="detail zero"></div>
<div class="detail one"></div>
<div class="detail two"></div>
<div class="detail three"></div>
<div class="detail four"></div>
<div class="detail five"></div>
<div class="detail five"></div>
</div>
<div class="stripe three"></div>
</div>
<div class="ball">
<div class="lines one"></div>
<div class="lines two"></div>
<div class="ring one"></div>
<div class="ring two"></div>
<div class="ring three"></div>
</div>
<div class="shadow"></div>
</div>
</div>
</label>
<label>
<input type="checkbox" class="slider">
<div class="switch">
<div class="suns"></div>
<div class="moons">
<div class="star star-1"></div>
<div class="star star-2"></div>
<div class="star star-3"></div>
<div class="star star-4"></div>
<div class="star star-5"></div>
<div class="first-moon"></div>
</div>
<div class="sand"></div>
<div class="bb8">
<div class="antennas">
<div class="antenna short"></div>
<div class="antenna long"></div>
</div>
<div class="head">
<div class="stripe one"></div>
<div class="stripe two"></div>
<div class="eyes">
<div class="eye one"></div>
<div class="eye two"></div>
</div>
<div class="stripe detail">
<div class="detail zero"></div>
<div class="detail zero"></div>
<div class="detail one"></div>
<div class="detail two"></div>
<div class="detail three"></div>
<div class="detail four"></div>
<div class="detail five"></div>
<div class="detail five"></div>
</div>
<div class="stripe three"></div>
</div>
<div class="ball">
<div class="lines one"></div>
<div class="lines two"></div>
<div class="ring one"></div>
<div class="ring two"></div>
<div class="ring three"></div>
</div>
<div class="shadow"></div>
</div>
</div>
</label>
👍2
Dev_html
Photo
Css :-
.switch {
--toggle-size: 1;
}
.switch *, .switch *::after, *::before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.switch {
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 170px;
height: 90px;
background-color: #b7cecc;
position: relative;
border-radius: 999px;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
cursor: pointer;
-webkit-transform: scale(var(--toggle-size));
-ms-transform: scale(var(--toggle-size));
transform: scale(var(--toggle-size));
}
.moons {
position: absolute;
width: 100px;
height: 65px;
overflow: hidden;
top: 0;
left: -10px;
}
.moons .star {
position: absolute;
width: 1px;
height: 1px;
top: 45px;
left: 30px;
border-radius: 999px;
background-color: #ffffff;
}
.moons .star.star-1 {
top: 100%;
left: 75px;
-webkit-transition: .2s;
-o-transition: .2s;
transition: .2s;
}
.moons .star.star-2 {
top: 100%;
left: 65px;
-webkit-transition: .3s;
-o-transition: .3s;
transition: .3s;
}
.moons .star.star-3 {
top: 100%;
left: 85px;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
}
.moons .star.star-4 {
top: 100%;
left: 60px;
-webkit-transition: .5s;
-o-transition: .5s;
transition: .5s;
}
.moons .star.star-5 {
top: 100%;
left: 44px;
-webkit-transition: .6s;
-o-transition: .6s;
transition: .6s;
}
.moons .first-moon {
position: absolute;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
width: 30px;
height: 30px;
top: 100%;
left: 30px;
background-color: #e0d6d6;
border-radius: 999px;
}
.moons::before, .moons::after {
-webkit-transition: .6s;
-o-transition: .6s;
transition: .6s;
content: "";
position: absolute;
width: 8px;
height: 8px;
background-color: #dde4e6;
border-radius: 999px;
top: 100%;
left: 70px;
}
.moons::after {
width: 5px;
height: 5px;
left: 81px;
-webkit-transition: .8s;
-o-transition: .8s;
transition: .8s;
}
.sand {
position: absolute;
width: 100%;
height: 45px;
bottom: 0px;
left: 0;
border-radius: 0 0 999px 999px;
overflow: hidden;
}
.suns {
position: absolute;
width: 50px;
height: 70px;
overflow: hidden;
top: 0;
right: 15px;
}
.suns::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: #faddef;
border-radius: 999px;
top: 10px;
right: 30px;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
}
.suns::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: #F65604;
border-radius: 999px;
top: 38px;
right: 10px;
-webkit-transition: .6s;
-o-transition: .6s;
transition: .6s;
}
.sand::before {
position: absolute;
width: 100%;
height: 25px;
bottom: 0px;
left: 0;
content: "";
background-color: #B69C77;
border-radius: 0 0 999px 999px;
}
.bb8 {
position: absolute;
left: -18%;
width: 140px;
-webkit-transform: scale(0.45);
-ms-transform: scale(0.45);
transform: scale(0.45);
-webkit-transition: left .4s;
-o-transition: left .4s;
transition: left .4s;
}
.slider {
display: none;
}
.antennas {
position: absolute;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
left: 28%;
}
.antenna {
background: #e0d2be;
position: absolute;
width: 2px;
}
.antenna.short {
height: 20px;
top: -65px;
left: 50px;
}
.antenna.long {
border-top: 6px solid #020204;
border-bottom: 6px solid #020204;
height: 36px;
top: -80px;
left: 56px;
}
.head {
-webkit-transition: -webkit-transform .4s;
transition: -webkit-transform .4s;
.switch {
--toggle-size: 1;
}
.switch *, .switch *::after, *::before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.switch {
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 170px;
height: 90px;
background-color: #b7cecc;
position: relative;
border-radius: 999px;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
cursor: pointer;
-webkit-transform: scale(var(--toggle-size));
-ms-transform: scale(var(--toggle-size));
transform: scale(var(--toggle-size));
}
.moons {
position: absolute;
width: 100px;
height: 65px;
overflow: hidden;
top: 0;
left: -10px;
}
.moons .star {
position: absolute;
width: 1px;
height: 1px;
top: 45px;
left: 30px;
border-radius: 999px;
background-color: #ffffff;
}
.moons .star.star-1 {
top: 100%;
left: 75px;
-webkit-transition: .2s;
-o-transition: .2s;
transition: .2s;
}
.moons .star.star-2 {
top: 100%;
left: 65px;
-webkit-transition: .3s;
-o-transition: .3s;
transition: .3s;
}
.moons .star.star-3 {
top: 100%;
left: 85px;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
}
.moons .star.star-4 {
top: 100%;
left: 60px;
-webkit-transition: .5s;
-o-transition: .5s;
transition: .5s;
}
.moons .star.star-5 {
top: 100%;
left: 44px;
-webkit-transition: .6s;
-o-transition: .6s;
transition: .6s;
}
.moons .first-moon {
position: absolute;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
width: 30px;
height: 30px;
top: 100%;
left: 30px;
background-color: #e0d6d6;
border-radius: 999px;
}
.moons::before, .moons::after {
-webkit-transition: .6s;
-o-transition: .6s;
transition: .6s;
content: "";
position: absolute;
width: 8px;
height: 8px;
background-color: #dde4e6;
border-radius: 999px;
top: 100%;
left: 70px;
}
.moons::after {
width: 5px;
height: 5px;
left: 81px;
-webkit-transition: .8s;
-o-transition: .8s;
transition: .8s;
}
.sand {
position: absolute;
width: 100%;
height: 45px;
bottom: 0px;
left: 0;
border-radius: 0 0 999px 999px;
overflow: hidden;
}
.suns {
position: absolute;
width: 50px;
height: 70px;
overflow: hidden;
top: 0;
right: 15px;
}
.suns::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: #faddef;
border-radius: 999px;
top: 10px;
right: 30px;
-webkit-transition: .4s;
-o-transition: .4s;
transition: .4s;
}
.suns::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: #F65604;
border-radius: 999px;
top: 38px;
right: 10px;
-webkit-transition: .6s;
-o-transition: .6s;
transition: .6s;
}
.sand::before {
position: absolute;
width: 100%;
height: 25px;
bottom: 0px;
left: 0;
content: "";
background-color: #B69C77;
border-radius: 0 0 999px 999px;
}
.bb8 {
position: absolute;
left: -18%;
width: 140px;
-webkit-transform: scale(0.45);
-ms-transform: scale(0.45);
transform: scale(0.45);
-webkit-transition: left .4s;
-o-transition: left .4s;
transition: left .4s;
}
.slider {
display: none;
}
.antennas {
position: absolute;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
left: 28%;
}
.antenna {
background: #e0d2be;
position: absolute;
width: 2px;
}
.antenna.short {
height: 20px;
top: -65px;
left: 50px;
}
.antenna.long {
border-top: 6px solid #020204;
border-bottom: 6px solid #020204;
height: 36px;
top: -80px;
left: 56px;
}
.head {
-webkit-transition: -webkit-transform .4s;
transition: -webkit-transform .4s;
Dev_html
Photo
-o-transition: transform .4s;
transition: transform .4s, -webkit-transform .4s;
background-color: ghostwhite;
border-radius: 90px 90px 25px 25px;
-moz-border-radius: 90px 90px 25px 25px;
-webkit-border-radius: 90px 90px 25px 25px;
height: 63px;
margin-left: -45px;
overflow: hidden;
position: absolute;
width: 95px;
z-index: 1;
top: -56px;
left: 56%;
}
.head .stripe {
position: absolute;
width: 100%;
}
.head .stripe.one {
background: #7699B7;
height: 7px;
opacity: 0.8;
z-index: 1;
top: 3px;
}
.head .stripe.two {
background: #CD7640;
height: 4px;
top: 14px;
}
.head .stripe.three {
background: #999;
height: 4px;
opacity: 0.5;
bottom: 3px;
}
.head .stripe.detail {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 200px;
bottom: 7px;
left: -38%;
-webkit-transition: left 0.4s;
-o-transition: left 0.4s;
transition: left 0.4s;
}
.head .detail {
height: 7px;
}
.head .detail.zero {
background-color: #CD7640;
width: 2%;
margin-left: 3px;
}
.head .detail.one {
background-color: #CD7640;
width: 8%;
margin-left: 3px;
}
.head .detail.two {
background-color: #CD7640;
width: 6%;
margin-left: 5px;
}
.head .detail.three {
background-color: #CD7640;
width: 4%;
margin-left: 45px;
height: 5px;
margin-top: 2px;
}
.head .detail.four {
background-color: #CD7640;
width: 10%;
margin-left: 4px;
}
.head .detail.five {
background-color: #CD7640;
width: 2%;
margin-left: 3px;
}
.head .eyes {
display: inline-block;
height: 100%;
position: absolute;
width: 100%;
-webkit-transition: left 0.4s;
-o-transition: left 0.4s;
transition: left 0.4s;
left: 22%;
}
.head .eye {
border-radius: 50%;
display: block;
position: absolute;
}
.head .eye.one {
background: #020204;
border: 4px solid lightgray;
height: 30px;
width: 30px;
top: 12px;
left: 12%;
}
.head .eye.one:after {
background: white;
border-radius: 50%;
content: "";
display: block;
height: 3px;
position: absolute;
width: 3px;
top: 4px;
right: 4px;
}
.head .eye.two {
background-color: lightgrey;
border: 1px solid #020204;
height: 16px;
width: 16px;
top: 30px;
left: 40%;
}
.head .eye.two:after {
background: #020204;
border-radius: 50%;
content: "";
display: block;
height: 10px;
position: absolute;
width: 10px;
top: 2px;
left: 2px;
}
.ball {
background-color: ghostwhite;
border-radius: 50%;
height: 165px;
overflow: hidden;
position: relative;
width: 165px;
-webkit-transition: -webkit-transform .4s;
transition: -webkit-transform .4s;
-o-transition: transform .4s;
transition: transform .4s, -webkit-transform .4s;
}
.lines {
border: 2px solid #B19669;
border-radius: 50%;
height: 400px;
opacity: 0.6;
position: absolute;
width: 400px;
}
.lines.two {
top: -10px;
left: -250px;
}
.ring {
background: #CD7640;
border-radius: 50%;
height: 70px;
margin-left: -35px;
position: absolute;
width: 70px;
}
.ring:after {
background-color: ghostwhite;
border-radius: 50%;
content: "";
display: block;
height: 73%;
margin-top: -36%;
margin-left: -36%;
position: absolute;
width: 73%;
top: 50%;
left: 50%;
}
.ring.one {
margin-left: -40px;
height: 90px;
width: 100px;
top: 2%;
left: 42%;
}
.ring.two {
height: 40px;
width: 80px;
-ms-transform: rotate(50deg);
-webkit-transform: rotate(50deg);
transform: rotate(50deg);
top: 65%;
left: 8%;
}
.ring.two:after {
top: 100%;
}
.ring.three {
height: 37px;
width: 80px;
-ms-transform: rotate(-50deg);
-webkit-transform: rotate(-50deg);
transform: rotate(-50deg);
top: 68%;
left: 84%;
}
.ring.three:after {
top: 110%;
}
.shadow {
background: #3A271C;
-webkit-box-shadow: 5px 0 50px #3A271C;
box-shadow: 5px 0 50px #3A271C;
border-radius: 50%;
height: 23.3333333333px;
opacity: 0.25;
position: absolute;
width: 110px;
left: 28px;
z-index: -1;
bottom: -8px;
}
/* actions */
.slider:checked+ .switch .bb8 {
left: 29%;
}
transition: transform .4s, -webkit-transform .4s;
background-color: ghostwhite;
border-radius: 90px 90px 25px 25px;
-moz-border-radius: 90px 90px 25px 25px;
-webkit-border-radius: 90px 90px 25px 25px;
height: 63px;
margin-left: -45px;
overflow: hidden;
position: absolute;
width: 95px;
z-index: 1;
top: -56px;
left: 56%;
}
.head .stripe {
position: absolute;
width: 100%;
}
.head .stripe.one {
background: #7699B7;
height: 7px;
opacity: 0.8;
z-index: 1;
top: 3px;
}
.head .stripe.two {
background: #CD7640;
height: 4px;
top: 14px;
}
.head .stripe.three {
background: #999;
height: 4px;
opacity: 0.5;
bottom: 3px;
}
.head .stripe.detail {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 200px;
bottom: 7px;
left: -38%;
-webkit-transition: left 0.4s;
-o-transition: left 0.4s;
transition: left 0.4s;
}
.head .detail {
height: 7px;
}
.head .detail.zero {
background-color: #CD7640;
width: 2%;
margin-left: 3px;
}
.head .detail.one {
background-color: #CD7640;
width: 8%;
margin-left: 3px;
}
.head .detail.two {
background-color: #CD7640;
width: 6%;
margin-left: 5px;
}
.head .detail.three {
background-color: #CD7640;
width: 4%;
margin-left: 45px;
height: 5px;
margin-top: 2px;
}
.head .detail.four {
background-color: #CD7640;
width: 10%;
margin-left: 4px;
}
.head .detail.five {
background-color: #CD7640;
width: 2%;
margin-left: 3px;
}
.head .eyes {
display: inline-block;
height: 100%;
position: absolute;
width: 100%;
-webkit-transition: left 0.4s;
-o-transition: left 0.4s;
transition: left 0.4s;
left: 22%;
}
.head .eye {
border-radius: 50%;
display: block;
position: absolute;
}
.head .eye.one {
background: #020204;
border: 4px solid lightgray;
height: 30px;
width: 30px;
top: 12px;
left: 12%;
}
.head .eye.one:after {
background: white;
border-radius: 50%;
content: "";
display: block;
height: 3px;
position: absolute;
width: 3px;
top: 4px;
right: 4px;
}
.head .eye.two {
background-color: lightgrey;
border: 1px solid #020204;
height: 16px;
width: 16px;
top: 30px;
left: 40%;
}
.head .eye.two:after {
background: #020204;
border-radius: 50%;
content: "";
display: block;
height: 10px;
position: absolute;
width: 10px;
top: 2px;
left: 2px;
}
.ball {
background-color: ghostwhite;
border-radius: 50%;
height: 165px;
overflow: hidden;
position: relative;
width: 165px;
-webkit-transition: -webkit-transform .4s;
transition: -webkit-transform .4s;
-o-transition: transform .4s;
transition: transform .4s, -webkit-transform .4s;
}
.lines {
border: 2px solid #B19669;
border-radius: 50%;
height: 400px;
opacity: 0.6;
position: absolute;
width: 400px;
}
.lines.two {
top: -10px;
left: -250px;
}
.ring {
background: #CD7640;
border-radius: 50%;
height: 70px;
margin-left: -35px;
position: absolute;
width: 70px;
}
.ring:after {
background-color: ghostwhite;
border-radius: 50%;
content: "";
display: block;
height: 73%;
margin-top: -36%;
margin-left: -36%;
position: absolute;
width: 73%;
top: 50%;
left: 50%;
}
.ring.one {
margin-left: -40px;
height: 90px;
width: 100px;
top: 2%;
left: 42%;
}
.ring.two {
height: 40px;
width: 80px;
-ms-transform: rotate(50deg);
-webkit-transform: rotate(50deg);
transform: rotate(50deg);
top: 65%;
left: 8%;
}
.ring.two:after {
top: 100%;
}
.ring.three {
height: 37px;
width: 80px;
-ms-transform: rotate(-50deg);
-webkit-transform: rotate(-50deg);
transform: rotate(-50deg);
top: 68%;
left: 84%;
}
.ring.three:after {
top: 110%;
}
.shadow {
background: #3A271C;
-webkit-box-shadow: 5px 0 50px #3A271C;
box-shadow: 5px 0 50px #3A271C;
border-radius: 50%;
height: 23.3333333333px;
opacity: 0.25;
position: absolute;
width: 110px;
left: 28px;
z-index: -1;
bottom: -8px;
}
/* actions */
.slider:checked+ .switch .bb8 {
left: 29%;
}
Dev_html
Photo
.slider:checked + .switch .bb8 .ball {
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.slider:hover+ .switch .bb8 .eyes {
left: 60%;
}
.slider:checked:hover+ .switch .bb8 .eyes {
left: -20%;
}
.slider:active+ .switch .bb8 .head {
-webkit-transform: translate(35px, 3px) rotateZ(17deg);
-ms-transform: translate(35px, 3px) rotate(17deg);
transform: translate(30px, 3px) rotateZ(17deg);
}
.slider:checked:active+ .switch .bb8 .head {
-webkit-transform: translate(-35px, 6px) rotateZ(-17deg);
-ms-transform: translate(-35px, 6px) rotate(-17deg);
transform: translate(-35px, 6px) rotateZ(-17deg);
}
.slider:active+.switch .antennas {
-webkit-transform: translate(35px, -20px) rotateZ(17deg);
-ms-transform: translate(35px, -20px) rotate(17deg);
transform: translate(35px, -20px) rotateZ(17deg);
}
.slider:active:not(:hover)+.switch .antennas {
-webkit-transform: translate(35px, -10px) rotateZ(17deg);
-ms-transform: translate(35px, -10px) rotate(17deg);
transform: translate(35px, -10px) rotateZ(17deg);
}
.slider:checked:active+.switch .antennas {
-webkit-transform: translate(-35px, 10px) rotateZ(-17deg);
-ms-transform: translate(-35px, 10px) rotate(-17deg);
transform: translate(-35px, 15px) rotateZ(-17deg);
}
.slider:checked:active:not(:hover)+.switch .antennas {
-webkit-transform: translate(-30px, 20px) rotateZ(-17deg);
-ms-transform: translate(-30px, 20px) rotate(-17deg);
transform: translate(-25px, 25px) rotateZ(-17deg);
}
.slider:hover+ .switch .antennas, .slider:checked+ .switch .antennas {
left: 6%;
}
.slider:hover+ .switch .stripe.detail, .slider:checked+ .switch .stripe.detail {
left: 0;
}
.slider:checked:hover+ .switch .antennas {
left: 28%;
}
.slider:checked:hover+ .switch .stripe.detail {
left: -38%;
}
.slider:checked + .switch {
background-color: #112350;
}
.slider:checked + .switch .suns::before {
top: 100px;
}
.slider:checked + .switch .suns::after {
top: 150px;
}
.slider:checked + .switch .moons .first-moon {
top: 15px;
-webkit-box-shadow: 0 0 10px #B8CCCD;
box-shadow: 0 0 10px #B8CCCD;
}
.slider:checked + .switch .moons::after {
top: 38px;
-webkit-box-shadow: 0 0 15px #B8CCCD;
box-shadow: 0 0 15px #B8CCCD;
}
.slider:checked + .switch .moons::before {
top: 34px;
-webkit-box-shadow: 0 0 15px #B8CCCD;
box-shadow: 0 0 15px #B8CCCD;
}
.slider:checked + .switch .moons .star {
-webkit-box-shadow: 0 0 20px 2px #fff;
box-shadow: 0 0 20px 2px #fff;
}
.slider:checked + .switch .moons .star.star-1 {
top: 20px;
}
.slider:checked + .switch .moons .star.star-2 {
top: 15px;
}
.slider:checked + .switch .moons .star.star-3 {
top: 15px;
}
.slider:checked + .switch .moons .star.star-4 {
top: 45px;
}
.slider:checked + .switch .moons .star.star-5 {
top: 53px;
}
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.slider:hover+ .switch .bb8 .eyes {
left: 60%;
}
.slider:checked:hover+ .switch .bb8 .eyes {
left: -20%;
}
.slider:active+ .switch .bb8 .head {
-webkit-transform: translate(35px, 3px) rotateZ(17deg);
-ms-transform: translate(35px, 3px) rotate(17deg);
transform: translate(30px, 3px) rotateZ(17deg);
}
.slider:checked:active+ .switch .bb8 .head {
-webkit-transform: translate(-35px, 6px) rotateZ(-17deg);
-ms-transform: translate(-35px, 6px) rotate(-17deg);
transform: translate(-35px, 6px) rotateZ(-17deg);
}
.slider:active+.switch .antennas {
-webkit-transform: translate(35px, -20px) rotateZ(17deg);
-ms-transform: translate(35px, -20px) rotate(17deg);
transform: translate(35px, -20px) rotateZ(17deg);
}
.slider:active:not(:hover)+.switch .antennas {
-webkit-transform: translate(35px, -10px) rotateZ(17deg);
-ms-transform: translate(35px, -10px) rotate(17deg);
transform: translate(35px, -10px) rotateZ(17deg);
}
.slider:checked:active+.switch .antennas {
-webkit-transform: translate(-35px, 10px) rotateZ(-17deg);
-ms-transform: translate(-35px, 10px) rotate(-17deg);
transform: translate(-35px, 15px) rotateZ(-17deg);
}
.slider:checked:active:not(:hover)+.switch .antennas {
-webkit-transform: translate(-30px, 20px) rotateZ(-17deg);
-ms-transform: translate(-30px, 20px) rotate(-17deg);
transform: translate(-25px, 25px) rotateZ(-17deg);
}
.slider:hover+ .switch .antennas, .slider:checked+ .switch .antennas {
left: 6%;
}
.slider:hover+ .switch .stripe.detail, .slider:checked+ .switch .stripe.detail {
left: 0;
}
.slider:checked:hover+ .switch .antennas {
left: 28%;
}
.slider:checked:hover+ .switch .stripe.detail {
left: -38%;
}
.slider:checked + .switch {
background-color: #112350;
}
.slider:checked + .switch .suns::before {
top: 100px;
}
.slider:checked + .switch .suns::after {
top: 150px;
}
.slider:checked + .switch .moons .first-moon {
top: 15px;
-webkit-box-shadow: 0 0 10px #B8CCCD;
box-shadow: 0 0 10px #B8CCCD;
}
.slider:checked + .switch .moons::after {
top: 38px;
-webkit-box-shadow: 0 0 15px #B8CCCD;
box-shadow: 0 0 15px #B8CCCD;
}
.slider:checked + .switch .moons::before {
top: 34px;
-webkit-box-shadow: 0 0 15px #B8CCCD;
box-shadow: 0 0 15px #B8CCCD;
}
.slider:checked + .switch .moons .star {
-webkit-box-shadow: 0 0 20px 2px #fff;
box-shadow: 0 0 20px 2px #fff;
}
.slider:checked + .switch .moons .star.star-1 {
top: 20px;
}
.slider:checked + .switch .moons .star.star-2 {
top: 15px;
}
.slider:checked + .switch .moons .star.star-3 {
top: 15px;
}
.slider:checked + .switch .moons .star.star-4 {
top: 45px;
}
.slider:checked + .switch .moons .star.star-5 {
top: 53px;
}
Dev_html
Photo
Html :-
<div class="loader">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
<div class="loader">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
Dev_html
Photo
Css :-
.loader {
width: 112px;
height: 112px;
}
.box1,
.box2,
.box3 {
border: 16px solid #f5f5f5;
box-sizing: border-box;
position: absolute;
display: block;
}
.box1 {
width: 112px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
animation: abox1 4s 1s forwards ease-in-out infinite;
}
.box2 {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
animation: abox2 4s 1s forwards ease-in-out infinite;
}
.box3 {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
animation: abox3 4s 1s forwards ease-in-out infinite;
}
@keyframes abox1 {
0% {
width: 112px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
12.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
25% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
37.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
50% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
62.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
75% {
width: 48px;
height: 112px;
margin-top: 0px;
margin-left: 0px;
}
87.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
100% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
}
@keyframes abox2 {
0% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
12.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
25% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
37.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
50% {
width: 112px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
62.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
75% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
87.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
100% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
}
@keyframes abox3 {
0% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
12.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
25% {
width: 48px;
height: 112px;
margin-top: 0px;
margin-left: 64px;
}
37.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
50% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
62.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
75% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
87.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
100% {
width: 112px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
}
.loader {
width: 112px;
height: 112px;
}
.box1,
.box2,
.box3 {
border: 16px solid #f5f5f5;
box-sizing: border-box;
position: absolute;
display: block;
}
.box1 {
width: 112px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
animation: abox1 4s 1s forwards ease-in-out infinite;
}
.box2 {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
animation: abox2 4s 1s forwards ease-in-out infinite;
}
.box3 {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
animation: abox3 4s 1s forwards ease-in-out infinite;
}
@keyframes abox1 {
0% {
width: 112px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
12.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
25% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
37.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
50% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
62.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
75% {
width: 48px;
height: 112px;
margin-top: 0px;
margin-left: 0px;
}
87.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
100% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
}
@keyframes abox2 {
0% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
12.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
25% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
37.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
50% {
width: 112px;
height: 48px;
margin-top: 0px;
margin-left: 0px;
}
62.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
75% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
87.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
100% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
}
@keyframes abox3 {
0% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
12.5% {
width: 48px;
height: 48px;
margin-top: 0px;
margin-left: 64px;
}
25% {
width: 48px;
height: 112px;
margin-top: 0px;
margin-left: 64px;
}
37.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
50% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
62.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
75% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
87.5% {
width: 48px;
height: 48px;
margin-top: 64px;
margin-left: 64px;
}
100% {
width: 112px;
height: 48px;
margin-top: 64px;
margin-left: 0px;
}
}
Dev_html
Photo
<div class="voltage-button">
<button>Button</button>
<svg version="1.1" xmlns= x="0px" y="0px" viewBox="0 0 234.6 61.3" preserveAspectRatio="none" xml:space="preserve">
<filter id="glow">
<feGaussianBlur class="blur" result="coloredBlur" stdDeviation="2"></feGaussianBlur>
<feTurbulence type="fractalNoise" baseFrequency="0.075" numOctaves="0.3" result="turbulence"></feTurbulence>
<feDisplacementMap in="SourceGraphic" in2="turbulence" scale="30" xChannelSelector="R" yChannelSelector="G" result="displace"></feDisplacementMap>
<feMerge>
<feMergeNode in="coloredBlur"></feMergeNode>
<feMergeNode in="coloredBlur"></feMergeNode>
<feMergeNode in="coloredBlur"></feMergeNode>
<feMergeNode in="displace"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<path class="voltage line-1" d="m216.3 51.2c-3.7 0-3.7-1.1-7.3-1.1-3.7 0-3.7 6.8-7.3 6.8-3.7 0-3.7-4.6-7.3-4.6-3.7 0-3.7 3.6-7.3 3.6-3.7 0-3.7-0.9-7.3-0.9-3.7 0-3.7-2.7-7.3-2.7-3.7 0-3.7 7.8-7.3 7.8-3.7 0-3.7-4.9-7.3-4.9-3.7 0-3.7-7.8-7.3-7.8-3.7 0-3.7-1.1-7.3-1.1-3.7 0-3.7 3.1-7.3 3.1-3.7 0-3.7 10.9-7.3 10.9-3.7 0-3.7-12.5-7.3-12.5-3.7 0-3.7 4.6-7.3 4.6-3.7 0-3.7 4.5-7.3 4.5-3.7 0-3.7 3.6-7.3 3.6-3.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6-4 3 4.7 6 4.7 3-0.5 6-0.5 3-0.8 6-0.8 3-3.8 6-3.8 3 6.3 6 6.3 3-4.8 6-4.8 3 1.9 6 1.9 3-1.9 6-1.9 3 1.3 6 1.3c2.2 0 5-0.5 6.7 0.5 1.8 1.1 2.4 4 3.5 5.8 1 1.8 0.3 3.7 0.3 5.9 0 3.4 3.4 3.4 3.4 6.8s-3.3 3.4-3.3 6.8 4 3.4 4 6.8c0 2.2-6 2.7-7 4.4-1.1 1.8 1.1 6.7-0.7 7.7-1.6 0.8-4.7-1.1-6.8-1.1z" fill="transparent" stroke="#fff"></path>
</svg>
<div class="dots">
<div class="dot dot-1"></div>
<div class="dot dot-2"></div>
<div class="dot dot-3"></div>
<div class="dot dot-4"></div>
<div class="dot dot-5"></div>
</div>
</div>
<button>Button</button>
<svg version="1.1" xmlns= x="0px" y="0px" viewBox="0 0 234.6 61.3" preserveAspectRatio="none" xml:space="preserve">
<filter id="glow">
<feGaussianBlur class="blur" result="coloredBlur" stdDeviation="2"></feGaussianBlur>
<feTurbulence type="fractalNoise" baseFrequency="0.075" numOctaves="0.3" result="turbulence"></feTurbulence>
<feDisplacementMap in="SourceGraphic" in2="turbulence" scale="30" xChannelSelector="R" yChannelSelector="G" result="displace"></feDisplacementMap>
<feMerge>
<feMergeNode in="coloredBlur"></feMergeNode>
<feMergeNode in="coloredBlur"></feMergeNode>
<feMergeNode in="coloredBlur"></feMergeNode>
<feMergeNode in="displace"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<path class="voltage line-1" d="m216.3 51.2c-3.7 0-3.7-1.1-7.3-1.1-3.7 0-3.7 6.8-7.3 6.8-3.7 0-3.7-4.6-7.3-4.6-3.7 0-3.7 3.6-7.3 3.6-3.7 0-3.7-0.9-7.3-0.9-3.7 0-3.7-2.7-7.3-2.7-3.7 0-3.7 7.8-7.3 7.8-3.7 0-3.7-4.9-7.3-4.9-3.7 0-3.7-7.8-7.3-7.8-3.7 0-3.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3-2.6 6-2.6 3-0.6 6-0.6 3 2.9 6 2.9 3-4.1 6-4.1 3 0.1 6 0.1 3 3.7 6 3.7 3 0.1 6 0.1 3-0.6 6-0.6 3 0.7 6 0.7 3-2.2 6-2.2 3 4.4 6 4.4 3-1.7 6-1.7 3-4 6-4 3 4.7 6 4.7 3-0.5 6-0.5 3-0.8 6-0.8 3-3.8 6-3.8 3 6.3 6 6.3 3-4.8 6-4.8 3 1.9 6 1.9 3-1.9 6-1.9 3 1.3 6 1.3c2.2 0 5-0.5 6.7 0.5 1.8 1.1 2.4 4 3.5 5.8 1 1.8 0.3 3.7 0.3 5.9 0 3.4 3.4 3.4 3.4 6.8s-3.3 3.4-3.3 6.8 4 3.4 4 6.8c0 2.2-6 2.7-7 4.4-1.1 1.8 1.1 6.7-0.7 7.7-1.6 0.8-4.7-1.1-6.8-1.1z" fill="transparent" stroke="#fff"></path>
</svg>
<div class="dots">
<div class="dot dot-1"></div>
<div class="dot dot-2"></div>
<div class="dot dot-3"></div>
<div class="dot dot-4"></div>
<div class="dot dot-5"></div>
</div>
</div>
Dev_html
Photo
.voltage-button {
position: relative;
}
.voltage-button button {
color: white;
background: #0D1127;
padding: 1rem 3rem 1rem 3rem;
border-radius: 5rem;
border: 5px solid #5978F3;
font-size: 1.2rem;
line-height: 1em;
letter-spacing: 0.075em;
transition: background 0.3s;
}
.voltage-button button:hover {
cursor: pointer;
background: #0F1C53;
}
.voltage-button button:hover + svg, .voltage-button button:hover + svg + .dots {
opacity: 1;
}
.voltage-button svg {
display: block;
position: absolute;
top: -0.75em;
left: -0.25em;
width: calc(100% + 0.5em);
height: calc(100% + 1.5em);
pointer-events: none;
opacity: 0;
transition: opacity 0.4s;
transition-delay: 0.1s;
}
.voltage-button svg path {
stroke-dasharray: 100;
filter: url("#glow");
}
.voltage-button svg path.line-1 {
stroke: #f6de8d;
stroke-dashoffset: 0;
animation: spark-1 3s linear infinite;
}
.voltage-button svg path.line-2 {
stroke: #6bfeff;
stroke-dashoffset: 500;
animation: spark-2 3s linear infinite;
}
.voltage-button .dots {
opacity: 0;
transition: opacity 0.3s;
transition-delay: 0.4s;
}
.voltage-button .dots .dot {
width: 1rem;
height: 1rem;
background: white;
border-radius: 100%;
position: absolute;
opacity: 0;
}
.voltage-button .dots .dot-1 {
top: 0;
left: 20%;
animation: fly-up 3s linear infinite;
}
.voltage-button .dots .dot-2 {
top: 0;
left: 55%;
animation: fly-up 3s linear infinite;
animation-delay: 0.5s;
}
.voltage-button .dots .dot-3 {
top: 0;
left: 80%;
animation: fly-up 3s linear infinite;
animation-delay: 1s;
}
.voltage-button .dots .dot-4 {
bottom: 0;
left: 30%;
animation: fly-down 3s linear infinite;
animation-delay: 2.5s;
}
.voltage-button .dots .dot-5 {
bottom: 0;
left: 65%;
animation: fly-down 3s linear infinite;
animation-delay: 1.5s;
}
@keyframes spark-1 {
to {
stroke-dashoffset: -1000;
}
}
@keyframes spark-2 {
to {
stroke-dashoffset: -500;
}
}
@keyframes fly-up {
0% {
opacity: 0;
transform: translateY(0) scale(0.2);
}
5% {
opacity: 1;
transform: translateY(-1.5rem) scale(0.4);
}
10%, 100% {
opacity: 0;
transform: translateY(-3rem) scale(0.2);
}
}
@keyframes fly-down {
0% {
opacity: 0;
transform: translateY(0) scale(0.2);
}
5% {
opacity: 1;
transform: translateY(1.5rem) scale(0.4);
}
10%, 100% {
opacity: 0;
transform: translateY(3rem) scale(0.2);
}
}
position: relative;
}
.voltage-button button {
color: white;
background: #0D1127;
padding: 1rem 3rem 1rem 3rem;
border-radius: 5rem;
border: 5px solid #5978F3;
font-size: 1.2rem;
line-height: 1em;
letter-spacing: 0.075em;
transition: background 0.3s;
}
.voltage-button button:hover {
cursor: pointer;
background: #0F1C53;
}
.voltage-button button:hover + svg, .voltage-button button:hover + svg + .dots {
opacity: 1;
}
.voltage-button svg {
display: block;
position: absolute;
top: -0.75em;
left: -0.25em;
width: calc(100% + 0.5em);
height: calc(100% + 1.5em);
pointer-events: none;
opacity: 0;
transition: opacity 0.4s;
transition-delay: 0.1s;
}
.voltage-button svg path {
stroke-dasharray: 100;
filter: url("#glow");
}
.voltage-button svg path.line-1 {
stroke: #f6de8d;
stroke-dashoffset: 0;
animation: spark-1 3s linear infinite;
}
.voltage-button svg path.line-2 {
stroke: #6bfeff;
stroke-dashoffset: 500;
animation: spark-2 3s linear infinite;
}
.voltage-button .dots {
opacity: 0;
transition: opacity 0.3s;
transition-delay: 0.4s;
}
.voltage-button .dots .dot {
width: 1rem;
height: 1rem;
background: white;
border-radius: 100%;
position: absolute;
opacity: 0;
}
.voltage-button .dots .dot-1 {
top: 0;
left: 20%;
animation: fly-up 3s linear infinite;
}
.voltage-button .dots .dot-2 {
top: 0;
left: 55%;
animation: fly-up 3s linear infinite;
animation-delay: 0.5s;
}
.voltage-button .dots .dot-3 {
top: 0;
left: 80%;
animation: fly-up 3s linear infinite;
animation-delay: 1s;
}
.voltage-button .dots .dot-4 {
bottom: 0;
left: 30%;
animation: fly-down 3s linear infinite;
animation-delay: 2.5s;
}
.voltage-button .dots .dot-5 {
bottom: 0;
left: 65%;
animation: fly-down 3s linear infinite;
animation-delay: 1.5s;
}
@keyframes spark-1 {
to {
stroke-dashoffset: -1000;
}
}
@keyframes spark-2 {
to {
stroke-dashoffset: -500;
}
}
@keyframes fly-up {
0% {
opacity: 0;
transform: translateY(0) scale(0.2);
}
5% {
opacity: 1;
transform: translateY(-1.5rem) scale(0.4);
}
10%, 100% {
opacity: 0;
transform: translateY(-3rem) scale(0.2);
}
}
@keyframes fly-down {
0% {
opacity: 0;
transform: translateY(0) scale(0.2);
}
5% {
opacity: 1;
transform: translateY(1.5rem) scale(0.4);
}
10%, 100% {
opacity: 0;
transform: translateY(3rem) scale(0.2);
}
}
🤯1