Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
September
Login with Touch ID
(Touch / click the fingerprint)
CASHEY
$
1 2 3 4 5 6 7 8 1
2 2 3 4 5 6 7 8 2
3 2 3 4 5 6 7 8 3
9 2 3 4 5 6 7 8 9
9 2 3 4 5 6 7 8 9
Member of World Bank Group
8
9
10
11
12
13
14
css
*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; } .demo { background: linear-gradient(45deg, #bd69a3, #a16ad7); min-height: 100vh; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; font-size: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: hidden; position: relative; } .demo__screen { position: relative; background-color: #372546; overflow: hidden; flex-shrink: 0; } .demo__screen--clickable { cursor: pointer; -webkit-tap-highlight-color: transparent; } .demo__logo { font-family: Muli, sans-serif; font-weight: 600; letter-spacing: 1.155px; font-size: 11.55px; position: absolute; width: 100%; text-align: center; color: white; top: 16.5px; -webkit-transition: all 0.25s ease; transition: all 0.25s ease; will-change: transform, opacity; } .demo__logo--hidden { opacity: 0; -webkit-transform: translate3d(0, -33px, 0); transform: translate3d(0, -33px, 0); } .demo__logo-particles { position: absolute; width: 3.3px; height: 3.3px; left: 146.85px; top: 24.75px; opacity: 0; } .demo__logo-particles--visible { opacity: 1; } .demo__logo-particle { width: 2.475px; height: 2.475px; border-radius: 50%; background-color: white; opacity: 1; -webkit-transition: all 1.7s ease; transition: all 1.7s ease; position: absolute; will-change: transform; } @media (max-width: 400px) { .demo__logo-particle { display: none; } } .demo__logo-particle:nth-child(1) { left: -36.3px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(1) { -webkit-transform: translate3d(-42.9px, 33px, 0); transform: translate3d(-42.9px, 33px, 0); opacity: 0; } .demo__logo-particle:nth-child(2) { left: 0px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(2) { -webkit-transform: translate3d(-85.8px, 31.35px, 0); transform: translate3d(-85.8px, 31.35px, 0); opacity: 0; } .demo__logo-particle:nth-child(3) { left: 41.25px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(3) { -webkit-transform: translate3d(-79.2px, 56.1px, 0); transform: translate3d(-79.2px, 56.1px, 0); opacity: 0; } .demo__logo-particle:nth-child(4) { left: -36.3px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(4) { -webkit-transform: translate3d(-1.65px, 1.65px, 0); transform: translate3d(-1.65px, 1.65px, 0); opacity: 0; } .demo__logo-particle:nth-child(5) { left: -13.2px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(5) { -webkit-transform: translate3d(-4.95px, 44.55px, 0); transform: translate3d(-4.95px, 44.55px, 0); opacity: 0; } .demo__logo-particle:nth-child(6) { left: 39.6px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(6) { -webkit-transform: translate3d(-41.25px, 57.75px, 0); transform: translate3d(-41.25px, 57.75px, 0); opacity: 0; } .demo__logo-particle:nth-child(7) { left: 1.65px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(7) { -webkit-transform: translate3d(-47.85px, 28.05px, 0); transform: translate3d(-47.85px, 28.05px, 0); opacity: 0; } .demo__logo-particle:nth-child(8) { left: -19.8px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(8) { -webkit-transform: translate3d(23.1px, 39.6px, 0); transform: translate3d(23.1px, 39.6px, 0); opacity: 0; } .demo__logo-particle:nth-child(9) { left: 18.15px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(9) { -webkit-transform: translate3d(-75.9px, 18.15px, 0); transform: translate3d(-75.9px, 18.15px, 0); opacity: 0; } .demo__logo-particle:nth-child(10) { left: 6.6px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(10) { -webkit-transform: translate3d(66px, 44.55px, 0); transform: translate3d(66px, 44.55px, 0); opacity: 0; } .demo__logo-particle:nth-child(11) { left: 33px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(11) { -webkit-transform: translate3d(13.2px, 21.45px, 0); transform: translate3d(13.2px, 21.45px, 0); opacity: 0; } .demo__logo-particle:nth-child(12) { left: 0px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(12) { -webkit-transform: translate3d(11.55px, 37.95px, 0); transform: translate3d(11.55px, 37.95px, 0); opacity: 0; } .demo__logo-particle:nth-child(13) { left: 16.5px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(13) { -webkit-transform: translate3d(28.05px, 41.25px, 0); transform: translate3d(28.05px, 41.25px, 0); opacity: 0; } .demo__logo-particle:nth-child(14) { left: 33px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(14) { -webkit-transform: translate3d(-9.9px, 19.8px, 0); transform: translate3d(-9.9px, 19.8px, 0); opacity: 0; } .demo__logo-particle:nth-child(15) { left: -18.15px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(15) { -webkit-transform: translate3d(6.6px, 51.15px, 0); transform: translate3d(6.6px, 51.15px, 0); opacity: 0; } .demo__logo-particle:nth-child(16) { left: -28.05px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(16) { -webkit-transform: translate3d(-31.35px, 16.5px, 0); transform: translate3d(-31.35px, 16.5px, 0); opacity: 0; } .demo__logo-particle:nth-child(17) { left: -33px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(17) { -webkit-transform: translate3d(90.75px, 23.1px, 0); transform: translate3d(90.75px, 23.1px, 0); opacity: 0; } .demo__logo-particle:nth-child(18) { left: -37.95px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(18) { -webkit-transform: translate3d(14.85px, 26.4px, 0); transform: translate3d(14.85px, 26.4px, 0); opacity: 0; } .demo__logo-particle:nth-child(19) { left: 4.95px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(19) { -webkit-transform: translate3d(69.3px, 56.1px, 0); transform: translate3d(69.3px, 56.1px, 0); opacity: 0; } .demo__logo-particle:nth-child(20) { left: -29.7px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(20) { -webkit-transform: translate3d(-57.75px, 36.3px, 0); transform: translate3d(-57.75px, 36.3px, 0); opacity: 0; } .demo__logo-particle:nth-child(21) { left: 11.55px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(21) { -webkit-transform: translate3d(-13.2px, 39.6px, 0); transform: translate3d(-13.2px, 39.6px, 0); opacity: 0; } .demo__logo-particle:nth-child(22) { left: 34.65px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(22) { -webkit-transform: translate3d(-85.8px, 9.9px, 0); transform: translate3d(-85.8px, 9.9px, 0); opacity: 0; } .demo__logo-particle:nth-child(23) { left: 0px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(23) { -webkit-transform: translate3d(11.55px, 57.75px, 0); transform: translate3d(11.55px, 57.75px, 0); opacity: 0; } .demo__logo-particle:nth-child(24) { left: 0px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(24) { -webkit-transform: translate3d(-19.8px, 39.6px, 0); transform: translate3d(-19.8px, 39.6px, 0); opacity: 0; } .demo__logo-particle:nth-child(25) { left: 36.3px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(25) { -webkit-transform: translate3d(-6.6px, 51.15px, 0); transform: translate3d(-6.6px, 51.15px, 0); opacity: 0; } .demo__logo-particle:nth-child(26) { left: -31.35px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(26) { -webkit-transform: translate3d(-36.3px, 18.15px, 0); transform: translate3d(-36.3px, 18.15px, 0); opacity: 0; } .demo__logo-particle:nth-child(27) { left: -4.95px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(27) { -webkit-transform: translate3d(-21.45px, 41.25px, 0); transform: translate3d(-21.45px, 41.25px, 0); opacity: 0; } .demo__logo-particle:nth-child(28) { left: 23.1px; background-color: #8742cc; } .demo__logo-particle--exploded:nth-child(28) { -webkit-transform: translate3d(-16.5px, 42.9px, 0); transform: translate3d(-16.5px, 42.9px, 0); opacity: 0; } .demo__logo-particle:nth-child(29) { left: 39.6px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(29) { -webkit-transform: translate3d(-26.4px, 44.55px, 0); transform: translate3d(-26.4px, 44.55px, 0); opacity: 0; } .demo__logo-particle:nth-child(30) { left: -13.2px; background-color: #a94a8c; } .demo__logo-particle--exploded:nth-child(30) { -webkit-transform: translate3d(44.55px, 57.75px, 0); transform: translate3d(44.55px, 57.75px, 0); opacity: 0; } .demo__logo-name { display: inline-block; vertical-align: middle; } .demo__logo-pic { display: inline-block; width: 26.4px; height: 26.4px; vertical-align: middle; position: relative; -webkit-transform: scale(0.65); transform: scale(0.65); } .demo__logo-glass { border: 1.65px solid #ECC8DD; width: 11.55px; height: 11.55px; border-radius: 50%; position: absolute; } .demo__logo-glass:after { display: block; content: ''; width: 6.6px; height: 1.65px; background-color: #ECC8DD; top: 50%; position: absolute; left: 8.25px; top: 3.3px; } .demo__logo-glass:nth-child(2) { left: 19.8px; -webkit-transform: rotate(120deg); transform: rotate(120deg); border: 1.65px solid #a94a8c; } .demo__logo-glass:nth-child(2):after { background-color: #a94a8c; } .demo__logo-glass:nth-child(3) { left: 9.9px; top: 16.5px; -webkit-transform: rotate(240deg); transform: rotate(240deg); border: 1.65px solid #8742cc; } .demo__logo-glass:nth-child(3):after { background-color: #8742cc; } .demo__fprint-path { stroke-width: 2.5px; stroke-linecap: round; fill: none; stroke: white; visibility: hidden; -webkit-transition: opacity 0.5s ease; transition: opacity 0.5s ease; will-change: stroke-dashoffset, stroke-dasharray; -webkit-transform: translateZ(0); transform: translateZ(0); } .demo__fprint-path--pinkish { stroke: #a94a8c; } .demo__fprint-path--purplish { stroke: #8742cc; } .demo__fprint-path--gradient { stroke: url(#linear); -webkit-transition: stroke 0.3s ease; transition: stroke 0.3s ease; -webkit-transition-delay: 0.5s; transition-delay: 0.5s; } .demo__fprint-path#demo__elastic-path { will-change: opacity; opacity: 1; } .demo__hidden-path { display: none; } .demo__ending-path { fill: none; stroke-width: 2.5px; stroke-dasharray: 60 1000; stroke-dashoffset: 61; stroke-linecap: round; will-change: stroke-dashoffset, stroke-dasharray, opacity; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-transition: stroke-dashoffset 1s ease, stroke-dasharray 0.5s linear, opacity 0.75s ease; transition: stroke-dashoffset 1s ease, stroke-dasharray 0.5s linear, opacity 0.75s ease; } .demo__ending-path--removed { stroke-dashoffset: -130; stroke-dasharray: 5 1000; } .demo__ending-path--transparent { opacity: 0; } .demo__ending-path--pinkish { stroke: #a94a8c; } .demo__ending-path--purplish { stroke: #8742cc; } .demo__fprint { width: 297px; height: 528px; position: relative; top: 33px; overflow: visible; background-image: url("https://kiyutink.github.io/svg/fprintBackground.svg"); background-size: cover; } .demo__fprint--no-bg { background-image: none; } .demo__bullet { position: absolute; width: 6.6px; height: 6.6px; background-color: white; border-radius: 50%; top: 346.5px; left: 145.2px; opacity: 0; -webkit-transition: all 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955); transition: all 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955); will-change: transform, opacity; } .demo__bullet--with-aura { box-shadow: 0 0 0 4.95px rgba(255, 255, 255, 0.3); } .demo__bullet--elevated { -webkit-transform: translate3d(0, -412.5px, 0); transform: translate3d(0, -412.5px, 0); opacity: 1; } .demo__bullet--descended { -webkit-transform: translate3d(0, 49.5px, 0); transform: translate3d(0, 49.5px, 0); opacity: 1; -webkit-transition: all 0.6s cubic-bezier(0.285, 0.21, 0.605, 0.91); transition: all 0.6s cubic-bezier(0.285, 0.21, 0.605, 0.91); } .demo__top-bullet { position: absolute; width: 3.3px; height: 3.3px; background-color: white; top: 26.4px; left: 0; border-radius: 50%; opacity: 0.7; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; -webkit-transition-delay: 0.1s; transition-delay: 0.1s; will-change: opacity, transform; } .demo__top-bullet--1 { left: 64.35px; -webkit-transform: translate3d(82.5px, 0, 0); transform: translate3d(82.5px, 0, 0); opacity: 0.2; } .demo__top-bullet--2 { left: 105.6px; -webkit-transform: translate3d(41.25px, 0, 0); transform: translate3d(41.25px, 0, 0); opacity: 0.4; } .demo__top-bullet--3 { background-color: transparent; width: 9.9px; height: 9.9px; border: 2px solid white; top: 23.1px; left: 143.55px; box-shadow: 0 0 13.2px white; } .demo__top-bullet--4 { left: 188.1px; -webkit-transform: translate3d(-41.25px, 0, 0); transform: translate3d(-41.25px, 0, 0); opacity: 0.4; } .demo__top-bullet--5 { left: 229.35px; -webkit-transform: translate3d(-82.5px, 0, 0); transform: translate3d(-82.5px, 0, 0); opacity: 0.2; } .demo__top-bullet--hidden { opacity: 0; } .demo__top-bullet--spread { -webkit-transform: none; transform: none; } .demo__month { width: 100%; height: 33px; position: absolute; top: 41.25px; text-align: center; color: white; font-size: 11.55px; font-weight: 300; font-family: Muli, sans-serif; opacity: 0; -webkit-transform: translate3d(0, -24.75px, 0); transform: translate3d(0, -24.75px, 0); -webkit-transition: all 0.25s ease-out; transition: all 0.25s ease-out; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; will-change: transform, opacity; } .demo__month--visible { opacity: 1; -webkit-transform: none; transform: none; } .demo__money { width: 100%; height: 42.9px; font-size: 42.9px; position: absolute; display: -webkit-box; display: flex; color: white; font-family: Muli, sans-serif; font-weight: 300; top: 115.5px; -webkit-box-pack: center; justify-content: center; -webkit-box-align: start; align-items: flex-start; -webkit-transform: translate3d(0, -49.5px, 0); transform: translate3d(0, -49.5px, 0); opacity: 0; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; will-change: transform, opacity; overflow: hidden; } .demo__money--visible { -webkit-transform: none; transform: none; opacity: 1; } .demo__money-particles { position: absolute; width: 3.3px; height: 3.3px; left: 146.85px; top: 165px; opacity: 0; } .demo__money-particles--visible { opacity: 1; } .demo__money-particle { width: 2.475px; height: 2.475px; border-radius: 50%; background-color: white; opacity: 1; -webkit-transition: all 1.5s ease; transition: all 1.5s ease; position: absolute; will-change: transform; } @media (max-width: 400px) { .demo__money-particle { display: none; } } .demo__money-particle:nth-child(1) { left: 66px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(1) { -webkit-transform: translate3d(47.85px, 14.85px, 0); transform: translate3d(47.85px, 14.85px, 0); opacity: 0; } .demo__money-particle:nth-child(2) { left: -67.65px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(2) { -webkit-transform: translate3d(90.75px, 37.95px, 0); transform: translate3d(90.75px, 37.95px, 0); opacity: 0; } .demo__money-particle:nth-child(3) { left: -44.55px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(3) { -webkit-transform: translate3d(-26.4px, 8.25px, 0); transform: translate3d(-26.4px, 8.25px, 0); opacity: 0; } .demo__money-particle:nth-child(4) { left: 64.35px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(4) { -webkit-transform: translate3d(-3.3px, 28.05px, 0); transform: translate3d(-3.3px, 28.05px, 0); opacity: 0; } .demo__money-particle:nth-child(5) { left: -69.3px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(5) { -webkit-transform: translate3d(-21.45px, 51.15px, 0); transform: translate3d(-21.45px, 51.15px, 0); opacity: 0; } .demo__money-particle:nth-child(6) { left: 77.55px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(6) { -webkit-transform: translate3d(3.3px, 49.5px, 0); transform: translate3d(3.3px, 49.5px, 0); opacity: 0; } .demo__money-particle:nth-child(7) { left: 66px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(7) { -webkit-transform: translate3d(31.35px, 4.95px, 0); transform: translate3d(31.35px, 4.95px, 0); opacity: 0; } .demo__money-particle:nth-child(8) { left: 16.5px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(8) { -webkit-transform: translate3d(-84.15px, 9.9px, 0); transform: translate3d(-84.15px, 9.9px, 0); opacity: 0; } .demo__money-particle:nth-child(9) { left: -9.9px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(9) { -webkit-transform: translate3d(77.55px, 13.2px, 0); transform: translate3d(77.55px, 13.2px, 0); opacity: 0; } .demo__money-particle:nth-child(10) { left: -56.1px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(10) { -webkit-transform: translate3d(79.2px, 56.1px, 0); transform: translate3d(79.2px, 56.1px, 0); opacity: 0; } .demo__money-particle:nth-child(11) { left: -72.6px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(11) { -webkit-transform: translate3d(33px, 34.65px, 0); transform: translate3d(33px, 34.65px, 0); opacity: 0; } .demo__money-particle:nth-child(12) { left: 79.2px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(12) { -webkit-transform: translate3d(-61.05px, 18.15px, 0); transform: translate3d(-61.05px, 18.15px, 0); opacity: 0; } .demo__money-particle:nth-child(13) { left: -8.25px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(13) { -webkit-transform: translate3d(47.85px, 11.55px, 0); transform: translate3d(47.85px, 11.55px, 0); opacity: 0; } .demo__money-particle:nth-child(14) { left: -77.55px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(14) { -webkit-transform: translate3d(42.9px, 3.3px, 0); transform: translate3d(42.9px, 3.3px, 0); opacity: 0; } .demo__money-particle:nth-child(15) { left: -44.55px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(15) { -webkit-transform: translate3d(3.3px, 31.35px, 0); transform: translate3d(3.3px, 31.35px, 0); opacity: 0; } .demo__money-particle:nth-child(16) { left: -77.55px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(16) { -webkit-transform: translate3d(59.4px, 21.45px, 0); transform: translate3d(59.4px, 21.45px, 0); opacity: 0; } .demo__money-particle:nth-child(17) { left: -57.75px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(17) { -webkit-transform: translate3d(-69.3px, 8.25px, 0); transform: translate3d(-69.3px, 8.25px, 0); opacity: 0; } .demo__money-particle:nth-child(18) { left: 4.95px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(18) { -webkit-transform: translate3d(-85.8px, 52.8px, 0); transform: translate3d(-85.8px, 52.8px, 0); opacity: 0; } .demo__money-particle:nth-child(19) { left: -36.3px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(19) { -webkit-transform: translate3d(-80.85px, 29.7px, 0); transform: translate3d(-80.85px, 29.7px, 0); opacity: 0; } .demo__money-particle:nth-child(20) { left: 80.85px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(20) { -webkit-transform: translate3d(33px, 41.25px, 0); transform: translate3d(33px, 41.25px, 0); opacity: 0; } .demo__money-particle:nth-child(21) { left: 19.8px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(21) { -webkit-transform: translate3d(42.9px, 13.2px, 0); transform: translate3d(42.9px, 13.2px, 0); opacity: 0; } .demo__money-particle:nth-child(22) { left: 37.95px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(22) { -webkit-transform: translate3d(-4.95px, 54.45px, 0); transform: translate3d(-4.95px, 54.45px, 0); opacity: 0; } .demo__money-particle:nth-child(23) { left: 52.8px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(23) { -webkit-transform: translate3d(59.4px, 49.5px, 0); transform: translate3d(59.4px, 49.5px, 0); opacity: 0; } .demo__money-particle:nth-child(24) { left: 66px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(24) { -webkit-transform: translate3d(-13.2px, 14.85px, 0); transform: translate3d(-13.2px, 14.85px, 0); opacity: 0; } .demo__money-particle:nth-child(25) { left: 4.95px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(25) { -webkit-transform: translate3d(74.25px, 47.85px, 0); transform: translate3d(74.25px, 47.85px, 0); opacity: 0; } .demo__money-particle:nth-child(26) { left: -28.05px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(26) { -webkit-transform: translate3d(33px, 4.95px, 0); transform: translate3d(33px, 4.95px, 0); opacity: 0; } .demo__money-particle:nth-child(27) { left: 36.3px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(27) { -webkit-transform: translate3d(-56.1px, 42.9px, 0); transform: translate3d(-56.1px, 42.9px, 0); opacity: 0; } .demo__money-particle:nth-child(28) { left: 6.6px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(28) { -webkit-transform: translate3d(-52.8px, 47.85px, 0); transform: translate3d(-52.8px, 47.85px, 0); opacity: 0; } .demo__money-particle:nth-child(29) { left: 3.3px; background-color: #a94a8c; } .demo__money-particle--exploded:nth-child(29) { -webkit-transform: translate3d(-39.6px, 4.95px, 0); transform: translate3d(-39.6px, 4.95px, 0); opacity: 0; } .demo__money-particle:nth-child(30) { left: -46.2px; background-color: #8742cc; } .demo__money-particle--exploded:nth-child(30) { -webkit-transform: translate3d(-28.05px, 6.6px, 0); transform: translate3d(-28.05px, 6.6px, 0); opacity: 0; } .demo__money-currency { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; width: 28.05px; line-height: 42.9px; } .demo__money-digit { width: 24.75px; display: -webkit-box; display: flex; line-height: 42.9px; will-change: transform; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; } .demo__money-digit:nth-child(3) { margin-right: 8.25px; } .demo__money-digit:nth-child(2) { -webkit-transition: -webkit-transform 0.4s ease; transition: -webkit-transform 0.4s ease; transition: transform 0.4s ease; transition: transform 0.4s ease, -webkit-transform 0.4s ease; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; -webkit-transform: translate3d(0, -343.2px, 0); transform: translate3d(0, -343.2px, 0); } .demo__money-digit--visible:nth-child(2) { -webkit-transform: none; transform: none; } .demo__money-digit:nth-child(3) { -webkit-transition: -webkit-transform 0.5s ease; transition: -webkit-transform 0.5s ease; transition: transform 0.5s ease; transition: transform 0.5s ease, -webkit-transform 0.5s ease; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; -webkit-transform: translate3d(0, -343.2px, 0); transform: translate3d(0, -343.2px, 0); } .demo__money-digit--visible:nth-child(3) { -webkit-transform: none; transform: none; } .demo__money-digit:nth-child(4) { -webkit-transition: -webkit-transform 0.6s ease; transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease; transition: transform 0.6s ease, -webkit-transform 0.6s ease; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; -webkit-transform: translate3d(0, -343.2px, 0); transform: translate3d(0, -343.2px, 0); } .demo__money-digit--visible:nth-child(4) { -webkit-transform: none; transform: none; } .demo__money-digit:nth-child(5) { -webkit-transition: -webkit-transform 0.7s ease; transition: -webkit-transform 0.7s ease; transition: transform 0.7s ease; transition: transform 0.7s ease, -webkit-transform 0.7s ease; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; -webkit-transform: translate3d(0, -343.2px, 0); transform: translate3d(0, -343.2px, 0); } .demo__money-digit--visible:nth-child(5) { -webkit-transform: none; transform: none; } .demo__money-digit:nth-child(6) { -webkit-transition: -webkit-transform 0.8s ease; transition: -webkit-transform 0.8s ease; transition: transform 0.8s ease; transition: transform 0.8s ease, -webkit-transform 0.8s ease; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; -webkit-transform: translate3d(0, -343.2px, 0); transform: translate3d(0, -343.2px, 0); } .demo__money-digit--visible:nth-child(6) { -webkit-transform: none; transform: none; } .demo__under-curve { fill: url(#linear); opacity: 0; -webkit-transition: opacity 0.4s linear; transition: opacity 0.4s linear; -webkit-transition-delay: 0.6s; transition-delay: 0.6s; will-change: opacity; } .demo__under-curve--visible { opacity: 0.8; } .demo__touch-id { position: absolute; font-family: Muli, sans-serif; font-size: 16.5px; top: 148.5px; color: white; width: 100%; text-align: center; -webkit-transition: all 0.25s ease; transition: all 0.25s ease; will-change: transform, opacity; } .demo__touch-id--hidden { opacity: 0; -webkit-transition: translate3d(0, -33px, 0); transition: translate3d(0, -33px, 0); } .demo__tip { position: absolute; top: 173.25px; font-family: Muli, sans-serif; font-size: 9.9px; color: rgba(255, 255, 255, 0.6); text-align: center; width: 100%; -webkit-transition: opacity 0.3s ease; transition: opacity 0.3s ease; } .demo__tip--hidden { opacity: 0; } .demo__dates { position: absolute; bottom: 8.25px; width: 100%; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-transform: translate3d(0, 33px, 0); transform: translate3d(0, 33px, 0); opacity: 0; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; will-change: transform, opacity; } .demo__dates--visible { opacity: 1; -webkit-transform: none; transform: none; } .demo__member { position: absolute; width: 100%; bottom: 16.5px; text-align: center; color: white; font-family: Muli, sans-serif; font-size: 11.55px; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; will-change: transform, opacity; } .demo__member--hidden { -webkit-transform: translate3d(0, 33px, 0); transform: translate3d(0, 33px, 0); opacity: 0; } .demo__date { border-radius: 50%; height: 29.7px; width: 29.7px; color: white; font-size: 11.55px; font-family: Muli, sans-serif; margin: 0 3.3px; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; } .demo__date:nth-child(4) { border: 2px solid #ECC8DD; } .demo__buttons { position: absolute; width: 99px; height: 90.75px; display: -webkit-box; display: flex; flex-wrap: wrap; -webkit-box-align: center; align-items: center; -webkit-box-pack: justify; justify-content: space-between; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -webkit-transform: translateY(-33px); transform: translateY(-33px); pointer-events: none; } .demo__restart-button { -webkit-transform: translate3d(0, -165px, 0); transform: translate3d(0, -165px, 0); } .demo__codepen { -webkit-transform: translate3d(-165px, 0, 0); transform: translate3d(-165px, 0, 0); } .demo__codepen a { color: black; } .demo__twitter { -webkit-transform: translate3d(165px, 0, 0); transform: translate3d(165px, 0, 0); } .demo__twitter a { color: #1DA1F2; } .demo__original { -webkit-transform: translate3d(0, 165px, 0); transform: translate3d(0, 165px, 0); } .demo__original a { color: #ea4c89; } .demo__button { width: 41.25px; height: 41.25px; flex-shrink: 0; background-color: rgba(255, 255, 255, 0.7); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; border-radius: 50%; opacity: 0; will-change: opacity, transform; -webkit-transition: all 0.4s ease; transition: all 0.4s ease; pointer-events: none; font-size: 24.75px; line-height: 41.25px; } .demo__button--visible { -webkit-transform: none; transform: none; opacity: 1; pointer-events: auto; cursor: pointer; } .demo__button--visible:hover { background-color: white; box-shadow: 0 0 8.25px white; } .demo__restart-icon { flex-shrink: 0; width: 24.75px; height: 24.75px; fill: #372546; } .no-animation { opacity: 0; -webkit-transition: none !important; transition: none !important; }
JavaScript
$(document).ready(function() { if (!window.requestAnimationFrame) { window.requestAnimationFrame = function(cb) { setTimeout(() => cb(new Date()), 1000 / 60); } } const TIME_TO_FILL_FPRINT = 700; //ms const TIME_TO_REMOVE_FPRINT = 250; const DELAY_TO_CURVE = 350; const WOBBLE_TIME = 1000; const ELASTIC_TRANSITION_TIME_TO_STRAIGHT = 250; const ELASTIC_TRANSITION_TIME_TO_CURVED = 300; const ELEVATION_TIME = 700; const DELAY_AFTER_ELEVATION = 700; const DELAY_TO_ANIMATE_ELASTIC_STROKE = 400; const DELAY_TO_ANIMATE_MONEY_PARTICLES = 300; const DELAY_TO_ANIMATE_LOGO_PARTICLES = 500; const DELAY_TO_BULLET_AURA = 300; const DELAY_TO_DATES = 600; const DELAY_TO_RESTART = 4000; const fprintPathSelector = '.demo__fprint-path'; const $elasticPath = $('#demo__elastic-path'); const $fprintPaths = $('.demo__fprint-path'); const $endingPaths = $('.demo__ending-path'); const fprintPathsFirstHalf = []; const fprintPathsSecondHalf = []; const $bullet = $('.demo__bullet'); const $topBullets = $('.demo__top-bullet'); const $month = $('.demo__month'); const $money = $('.demo__money'); const $moneyDigits = $('.demo__money-digit'); const $underCurve = $('.demo__under-curve'); const $moneyParticles = $('.demo__money-particle'); const $moneyParticlesContainer = $('.demo__money-particles'); const $touchId = $('.demo__touch-id'); const $logo = $('.demo__logo'); const $logoParticlesContainer = $('.demo__logo-particles'); const $logoParticles = $('.demo__logo-particle'); const $dates = $('.demo__dates'); const $member = $('.demo__member'); const $fprint = $('.demo__fprint'); const $buttons = $('.demo__button'); const $restart = $('.demo__restart-button'); const $screen = $('.demo__screen'); const $tip = $('.demo__tip'); let isFprintAnimationInProgress = false; let isFprintAnimationOver = false; let curFprintPathsOffset = -1; let fprintProgressionDirection = 1; let lastRafCallTimestamp = 0; let fprintTick = getPropertyIncrement(0, 1, TIME_TO_FILL_FPRINT); let fprintPaths = []; for (let i = 0; i < $(fprintPathSelector).length; i++) { fprintPaths.push(new Path(fprintPathSelector, i)); fprintPaths[i].offset(-1).makeVisible(); if (fprintPaths[i].removesForwards) fprintPathsSecondHalf.push(fprintPaths[i]); else fprintPathsFirstHalf.push(fprintPaths[i]); } function removeFprint() { $endingPaths.addClass('demo__ending-path--removed'); setTimeout(() => { $endingPaths.addClass('demo__ending-path--transparent'); }, TIME_TO_REMOVE_FPRINT * 0.9); fprintProgressionDirection = -1; window.requestAnimationFrame(removeFprintFrame); } function removeFprintFrame(timestamp) { if (timestamp - lastRafCallTimestamp >= 1000 / 65) { curFprintPathsOffset += fprintTick * fprintProgressionDirection; offsetFprintPathsByHalves(curFprintPathsOffset); lastRafCallTimestamp = timestamp; } if (curFprintPathsOffset >= -1) window.requestAnimationFrame(removeFprintFrame); else { curFprintPathsOffset = -1; offsetAllFprintPaths(curFprintPathsOffset); } } function startElasticAnimation() { $elasticPath.css('stroke-dasharray', 'none'); const elasticAnimationTimeline = new TimelineLite(); elasticAnimationTimeline .to('#demo__elastic-path', ELASTIC_TRANSITION_TIME_TO_STRAIGHT / 1000, { delay: TIME_TO_REMOVE_FPRINT / 1000 * 0.7, morphSVG: '#demo__arc-to-top' }) .to('#demo__elastic-path', WOBBLE_TIME / 1000, { morphSVG: '#demo__straight-path', ease: Elastic.easeOut.config(1, 0.3) }) .to('#demo__elastic-path', ELASTIC_TRANSITION_TIME_TO_CURVED / 1000, { delay: DELAY_TO_CURVE / 1000, morphSVG: '#demo__curve' }) animateBullet(); } function elevateBullet() { $bullet.addClass('demo__bullet--elevated'); animateMoneyParticles(); animateLogoParticles(); } function descendBullet() { $bullet.addClass('demo__bullet--descended').removeClass('demo__bullet--elevated'); animateTopBullets(); animateMoney(); animateMonth(); animateUnderCurve(); animateBulletAura(); animateDates(); animateButtons(); } function animateBulletAura() { setTimeout(() => $bullet.addClass('demo__bullet--with-aura'), DELAY_TO_BULLET_AURA); } function animateButtons() { setTimeout(() => $buttons.addClass('demo__button--visible'), DELAY_TO_RESTART); } function animateMonth() { $month.addClass('demo__month--visible'); } function animateBullet() { elevateBullet(); $screen.removeClass('demo__screen--clickable'); setTimeout(descendBullet, ELEVATION_TIME + DELAY_AFTER_ELEVATION); } function animateTopBullets() { $topBullets.removeClass('demo__top-bullet--hidden').addClass('demo__top-bullet--spread'); } function animateMoney() { $money.addClass('demo__money--visible'); $moneyDigits.addClass('demo__money-digit--visible'); } function animateUnderCurve() { $underCurve.addClass('demo__under-curve--visible'); setTimeout(() => $elasticPath.addClass('demo__fprint-path--gradient'), DELAY_TO_ANIMATE_ELASTIC_STROKE); } function animateDates() { setTimeout(() => { $dates.addClass('demo__dates--visible'); $member.addClass('demo__member--hidden'); }, DELAY_TO_DATES); } function animateMoneyParticles() { setTimeout(() => { $moneyParticlesContainer.addClass('demo__money-particles--visible') $moneyParticles.addClass('demo__money-particle--exploded'); $touchId.addClass('demo__touch-id--hidden'); $tip.addClass('demo__tip--hidden'); }, DELAY_TO_ANIMATE_MONEY_PARTICLES); } function animateLogoParticles() { setTimeout(() => { $logoParticlesContainer.addClass('demo__logo-particles--visible') $logoParticles.addClass('demo__logo-particle--exploded'); $logo.addClass('demo__logo--hidden'); }, DELAY_TO_ANIMATE_LOGO_PARTICLES); } function fprintFrame(timestamp) { if (timestamp - lastRafCallTimestamp >= 1000 / 65) { lastRafCallTimestamp = timestamp; curFprintPathsOffset += fprintTick * fprintProgressionDirection; offsetAllFprintPaths(curFprintPathsOffset); } if (curFprintPathsOffset >= -1 && curFprintPathsOffset <= 0) { isFprintAnimationInProgress = true; window.requestAnimationFrame(fprintFrame); } else if (curFprintPathsOffset > 0) { curFprintPathsOffset = 0; offsetAllFprintPaths(curFprintPathsOffset); isFprintAnimationInProgress = false; isFprintAnimationOver = true; $fprint.addClass('demo__fprint--no-bg'); startElasticAnimation(); fprintTick = getPropertyIncrement(0, 1, TIME_TO_REMOVE_FPRINT); window.requestAnimationFrame(removeFprint); } else if (curFprintPathsOffset < -1) { curFprintPathsOffset = -1; offsetAllFprintPaths(curFprintPathsOffset); isFprintAnimationInProgress = false; } } function offsetAllFprintPaths(ratio) { fprintPaths.forEach(path => path.offset(ratio)); } function offsetFprintPathsByHalves(ratio) { fprintPathsFirstHalf.forEach(path => path.offset(ratio)); fprintPathsSecondHalf.forEach(path => path.offset(-ratio)); } $screen.on('mousedown touchstart', function() { fprintProgressionDirection = 1; if (!isFprintAnimationInProgress && !isFprintAnimationOver) window.requestAnimationFrame(fprintFrame); }) $(document).on('mouseup touchend', function() { fprintProgressionDirection = -1; if (!isFprintAnimationInProgress && !isFprintAnimationOver) window.requestAnimationFrame(fprintFrame); }) function clear(e) { $('.demo__screen *').addClass('no-animation'); $screen.addClass('demo__screen--clickable'); $buttons.removeClass('demo__button--visible'); $fprint.removeClass('demo__fprint--no-bg'); $member.removeClass('demo__member--hidden'); $dates.removeClass('demo__dates--visible'); $bullet.removeClass('demo__bullet--with-aura'); $logoParticlesContainer.removeClass('demo__logo-particles--visible') $logoParticles.removeClass('demo__logo-particle--exploded'); $logo.removeClass('demo__logo--hidden'); $touchId.removeClass('demo__touch-id--hidden'); $moneyParticlesContainer.removeClass('demo__money-particles--visible'); $moneyParticles.removeClass('demo__money-particle--exploded'); $elasticPath.removeClass('demo__fprint-path--gradient'); $underCurve.removeClass('demo__under-curve--visible'); $money.removeClass('demo__money--visible'); $moneyDigits.removeClass('demo__money-digit--visible'); $topBullets.addClass('demo__top-bullet--hidden').removeClass('demo__top-bullet--spread'); $month.removeClass('demo__month--visible'); $bullet.removeClass('demo__bullet--elevated demo__bullet--descended'); $endingPaths.removeClass('demo__ending-path--removed demo__ending-path--transparent'); $fprintPaths.removeClass('demo__fprint-path--transparent'); e.stopPropagation(); isFprintAnimationOver = false; isFprintAnimationInProgress = false; fprintTick = getPropertyIncrement(0, 1, TIME_TO_FILL_FPRINT); TweenMax.to('#demo__elastic-path', 0, {morphSVG: '#demo__elastic-path', onComplete: () => { for (let i = 0; i < $(fprintPathSelector).length; i++) { fprintPaths[i].setDasharray().offset(-1).makeVisible(); } }}); setTimeout(() => $('.demo__screen *').removeClass('no-animation'), 100); } $restart.on('click', clear); }); function getPropertyIncrement(startValue, endValue, transitionDuration) { const TICK_TIME = 1000 / 60; const ticksToComplete = transitionDuration / TICK_TIME; return (endValue - startValue) / ticksToComplete; } class Path { constructor(selector, index) { this.index = index; this.querySelection = document.querySelectorAll(selector)[index]; this.length = this.querySelection.getTotalLength(); this.$ = $(selector).eq(index); this.setDasharray(); this.removesForwards = this.$.hasClass('demo__fprint-path--removes-forwards'); } setDasharray() { // + 2 hack just fixes weird firefox bug (classic) this.$.css('stroke-dasharray', `${this.length} ${this.length + 2}`); return this; } offset(ratio) { // + 1 hack just fixes weird firefox bug (classic) this.$.css('stroke-dashoffset', -this.length * ratio + 1); return this; } makeVisible() { this.$.css('visibility', 'visible'); return this; } }
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>app应用指纹识别动画效果-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号