css实现炫酷下载按钮点击下载动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现炫酷下载按钮点击下载动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/ionicons.min.css">
<style>
@import url(https://fonts.googleapis.com/css?family=Fira+Sans:400,300,700,500,400italic,500italic,700italic,300italic);
body {
background: #2C3940;
overflow: hidden;
font-family: "Fira Sans", sans-serif;
}
body a {
color: white;
padding-top: 20px;
font-size: 10px;
opacity: 0.6;
position: relative;
top: 10px;
transition: all 0.3s;
font-weight: 100;
text-decoration: none;
}
body a:hover {
opacity: 1;
}
body a i.l {
margin-right: 3px;
}
input {
display: none;
}
input:checked + label .button_inner {
background: transparent;
transform: rotate(90deg);
width: 100px;
border-radius: 100px;
box-shadow: 0px 0px 0px 440px rgba(0, 0, 0, 0);
-webkit-animation: finalbox 0.4s 4.42s cubic-bezier(0.39, 2.01, 0.27, 0.75) forwards;
animation: finalbox 0.4s 4.42s cubic-bezier(0.39, 2.01, 0.27, 0.75) forwards;
}
input:checked + label .button_inner span.t {
opacity: 0;
top: 20px;
}
input:checked + label i.l {
left: 14px;
opacity: 1;
top: 11px;
-webkit-animation: down 1s 0.25s infinite, final 0.2s 4s forwards;
animation: down 1s 0.25s infinite, final 0.2s 4s forwards;
}
input:checked + label .tick {
position: absolute;
left: 2px;
right: 0;
transform: scale(0) rotate(-90deg);
color: #00C1FC;
top: 11px;
margin: auto;
font-size: 22px;
-webkit-animation: tick 0.3s 4.7s forwards;
animation: tick 0.3s 4.7s forwards;
}
input:checked + label .button_spots {
opacity: 1;
}
input:checked + label .button_spots:nth-of-type(0) {
top: 11px !important;
left: -34px !important;
opacity: 0;
padding: 2.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.2s 0.85s linear infinite, final 0.2s 4s forwards, spot-0 0.7s 10.7571428571s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.2s 0.85s linear infinite, final 0.2s 4s forwards, spot-0 0.7s 10.7571428571s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(1) {
top: 12px !important;
left: -34px !important;
opacity: 0;
padding: 6px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.2s 1.45s linear infinite, final 0.2s 4s forwards, spot-1 0.7s 10.2444444444s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.2s 1.45s linear infinite, final 0.2s 4s forwards, spot-1 0.7s 10.2444444444s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(2) {
top: 13px !important;
left: -34px !important;
opacity: 0;
padding: 3px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.4s 0.85s linear infinite, final 0.2s 4s forwards, spot-2 0.7s 11.2s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.4s 0.85s linear infinite, final 0.2s 4s forwards, spot-2 0.7s 11.2s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(3) {
top: 8px !important;
left: -34px !important;
opacity: 0;
padding: 6.5px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.35s linear infinite, final 0.2s 4s forwards, spot-3 0.7s 10.7666666667s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 0.35s linear infinite, final 0.2s 4s forwards, spot-3 0.7s 10.7666666667s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(4) {
top: 9px !important;
left: -34px !important;
opacity: 0;
padding: 5px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.1s 1.45s linear infinite, final 0.2s 4s forwards, spot-4 0.7s 10.2666666667s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.1s 1.45s linear infinite, final 0.2s 4s forwards, spot-4 0.7s 10.2666666667s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(5) {
top: 11px !important;
left: -34px !important;
opacity: 0;
padding: 4.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.45s linear infinite, final 0.2s 4s forwards, spot-5 0.7s 10.8444444444s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 0.45s linear infinite, final 0.2s 4s forwards, spot-5 0.7s 10.8444444444s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(6) {
top: 11px !important;
left: -34px !important;
opacity: 0;
padding: 5.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.1s 0.55s linear infinite, final 0.2s 4s forwards, spot-6 0.7s 10.64s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.1s 0.55s linear infinite, final 0.2s 4s forwards, spot-6 0.7s 10.64s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(7) {
top: 12px !important;
left: -34px !important;
opacity: 0;
padding: 6px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.65s linear infinite, final 0.2s 4s forwards, spot-7 0.7s 10.4666666667s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 0.65s linear infinite, final 0.2s 4s forwards, spot-7 0.7s 10.4666666667s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(8) {
top: 14px !important;
left: -34px !important;
opacity: 0;
padding: 6.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.1s 0.45s linear infinite, final 0.2s 4s forwards, spot-8 0.7s 10.1666666667s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.1s 0.45s linear infinite, final 0.2s 4s forwards, spot-8 0.7s 10.1666666667s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(9) {
top: 14px !important;
left: -34px !important;
opacity: 0;
padding: 3px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 1.25s linear infinite, final 0.2s 4s forwards, spot-9 0.7s 10.25s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 1.25s linear infinite, final 0.2s 4s forwards, spot-9 0.7s 10.25s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(10) {
top: 11px !important;
left: -34px !important;
opacity: 0;
padding: 3px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.4s 0.95s linear infinite, final 0.2s 4s forwards, spot-10 0.7s 10.5666666667s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.4s 0.95s linear infinite, final 0.2s 4s forwards, spot-10 0.7s 10.5666666667s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(11) {
top: 6px !important;
left: -34px !important;
opacity: 0;
padding: 4px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.45s linear infinite, final 0.2s 4s forwards, spot-11 0.7s 11.4s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 0.45s linear infinite, final 0.2s 4s forwards, spot-11 0.7s 11.4s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(12) {
top: 13px !important;
left: -34px !important;
opacity: 0;
padding: 5px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 1.25s linear infinite, final 0.2s 4s forwards, spot-12 0.7s 10.3s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 1.25s linear infinite, final 0.2s 4s forwards, spot-12 0.7s 10.3s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(13) {
top: 8px !important;
left: -34px !important;
opacity: 0;
padding: 5.25px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.1s 0.65s linear infinite, final 0.2s 4s forwards, spot-13 0.7s 10.8444444444s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.1s 0.65s linear infinite, final 0.2s 4s forwards, spot-13 0.7s 10.8444444444s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(14) {
top: 15px !important;
left: -34px !important;
opacity: 0;
padding: 3.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.2s 0.65s linear infinite, final 0.2s 4s forwards, spot-14 0.7s 11.08s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.2s 0.65s linear infinite, final 0.2s 4s forwards, spot-14 0.7s 11.08s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(15) {
top: 6px !important;
left: -34px !important;
opacity: 0;
padding: 5.5px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.4s 0.95s linear infinite, final 0.2s 4s forwards, spot-15 0.7s 10.58s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.4s 0.95s linear infinite, final 0.2s 4s forwards, spot-15 0.7s 10.58s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(16) {
top: 10px !important;
left: -34px !important;
opacity: 0;
padding: 3.25px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.65s linear infinite, final 0.2s 4s forwards, spot-16 0.7s 10.3571428571s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 0.65s linear infinite, final 0.2s 4s forwards, spot-16 0.7s 10.3571428571s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(17) {
top: 10px !important;
left: -34px !important;
opacity: 0;
padding: 5.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 1.15s linear infinite, final 0.2s 4s forwards, spot-17 0.7s 10.74s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 1.15s linear infinite, final 0.2s 4s forwards, spot-17 0.7s 10.74s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(18) {
top: 9px !important;
left: -34px !important;
opacity: 0;
padding: 3.75px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.1s 0.55s linear infinite, final 0.2s 4s forwards, spot-18 0.7s 10.7s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.1s 0.55s linear infinite, final 0.2s 4s forwards, spot-18 0.7s 10.7s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(19) {
top: 12px !important;
left: -34px !important;
opacity: 0;
padding: 3px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.55s linear infinite, final 0.2s 4s forwards, spot-19 0.7s 10.35s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.3s 0.55s linear infinite, final 0.2s 4s forwards, spot-19 0.7s 10.35s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(20) {
top: 12px !important;
left: -34px !important;
opacity: 0;
padding: 7px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.4s 1.25s linear infinite, final 0.2s 4s forwards, spot-20 0.7s 10.9s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.4s 1.25s linear infinite, final 0.2s 4s forwards, spot-20 0.7s 10.9s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(21) {
top: 7px !important;
left: -34px !important;
opacity: 0;
padding: 4.25px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.1s 0.55s linear infinite, final 0.2s 4s forwards, spot-21 0.7s 11.0444444444s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.1s 0.55s linear infinite, final 0.2s 4s forwards, spot-21 0.7s 11.0444444444s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(22) {
top: 9px !important;
left: -34px !important;
opacity: 0;
padding: 5px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.4s 1.25s linear infinite, final 0.2s 4s forwards, spot-22 0.7s 10.9333333333s linear infinite !important;
animation: spew 1s 0.3s forwards, rotate 4.4s 1.25s linear infinite, final 0.2s 4s forwards, spot-22 0.7s 10.9333333333s linear infinite !important;
}
input:checked + label .button_spots:nth-of-type(23) {
top: 7px !important;
left: -34px !important;
opacity: 0;
padding: 2.5px !important;
-webkit-animation: spew 1s 0.3s forwards, rotate 4.3s 0.45s linear infinite, final 0.2s 4s forwards, spot-23 0.7s 10.9444444444s linear infi.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0