Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Touch the fingerprint sensor
css
body { margin: 0; height: 100vh; display: flex; justify-content: center; align-items: center; font-family: 'Roboto', sans-serif; flex-direction: column;background-color: #a8f6ff; } #container { position: relative; transform: scale(1.25) } #container:hover { cursor: pointer; } #container * { position: absolute; top: 0; left: -25px } #Path-1, #Path-2, #Path-3, #Path-4, #Path-5 { stroke-dasharray: 200; stroke-dashoffset: 0; /* animation-play-state: paused; */ } .animate-path { animation: 0.8s fingerprint_animation ease-in forwards; } .animate-path-delay { animation: 0.8s fingerprint_animation ease-in forwards; animation-delay: 0.1s } #text { margin-top: 100px; transform: scale(1.23); /* animation-play-state: paused; */ } .animate-text { animation: 0.5s fadeout linear forwards; } #check { animation-delay: 0.3s; } .animate-check { animation: 0.5s check_animation linear forwards; } #checkmark { position: absolute; left: -5px; top: 0px; } #Oval { stroke-dasharray: 200px; stroke-dashoffset: 200; opacity: 0; transform: rotate(-75deg); transform-origin: 30px 30px; /* animation-play-state: paused; */ } .animate-oval { animation: 0.5s circle_animation 0.2s ease-in forwards; } @keyframes fingerprint_animation { 50% { stroke-dashoffset: -100; } 60% { stroke-opacity: 0; } 100% { stroke-dashoffset: -200; stroke-opacity: 0; } } @keyframes fadeout { 60% { opacity: 1; } 100% { opacity: 0; } } @keyframes circle_animation { 60% { opacity: 1; } 100% { opacity: 1; stroke-dasharray: 400px; transform: rotate(40deg); } } @keyframes check_animation { 0% { stroke-dasharray: 126; stroke-dashoffset: 126; } 100% { stroke-dasharray: 45; stroke-dashoffset: 94 } }
JavaScript
let container = document.querySelector('#container'); let text = document.querySelector('#text'); let check = document.querySelector('#check'); let oval = document.querySelector('#Oval'); let fingerprintPaths1 = document.getElementsByClassName('pathType1'); let fingerprintPaths2 = document.getElementsByClassName('pathType2'); let addClasses = () => { text.classList.add('animate-text'); check.classList.add('animate-check'); oval.classList.add('animate-oval'); console.log(fingerprintPaths2); console.log(fingerprintPaths1); for(i = 0; i < fingerprintPaths1.length; ++i) { fingerprintPaths1[i].classList.add('animate-path'); } for(i = 0; i < fingerprintPaths2.length; ++i) { fingerprintPaths2[i].classList.add('animate-path-delay'); } } let removeClasses = () => { text.classList.remove('animate-text'); check.classList.remove('animate-check'); oval.classList.remove('animate-oval'); console.log(fingerprintPaths2); console.log(fingerprintPaths1); for(i = 0; i < fingerprintPaths1.length; ++i) { fingerprintPaths1[i].classList.remove('animate-path'); } for(i = 0; i < fingerprintPaths2.length; ++i) { fingerprintPaths2[i].classList.remove('animate-path-delay'); } } let playAnimation = () => { addClasses(); setTimeout(removeClasses, 3000); } container.addEventListener('click', playAnimation);
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Whatsapp指纹解锁-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号