css实现指纹扫描动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现指纹扫描动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin:0; padding:0; box-sizing:border-box; font-family:consolas; } body { display:flex; justify-content:center; align-items:center; min-height:100vh; background:#111; } .scan { position:relative; display:flex; flex-direction:column; align-items:center; } .scan .fingerprint { position:relative; width:300px; height:300px; background:url(//repo.bfw.wiki/bfwrepo/icon/622fcb3bad286.webp); background-size:300px; } .scan .fingerprint::before { content: ''; position:absolute; top:0; left:0; width:100%; height:100%; background:url(//repo.bfw.wiki/bfwrepo/icon/622fcb4552ab1.webp); background-size:300px; animation:animate 4s ease-in-out infinite; } @keyframes animate { 0%, 100% { height:0%; } 50% { height:100.........完整代码请登录后点击上方下载按钮下载查看
网友评论0