js实现带声效数字滑动拖动密码锁解锁效果代码
代码语言:html
所属分类:布局界面
代码描述:js实现带声效数字滑动拖动密码锁解锁效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Orbitron:400,500,700,900" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Share+Tech+Mono" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/flickity.css"> <style> html, body { height: 100%; overflow: hidden; } body { -webkit-box-align: center; align-items: center; background: #111; background: radial-gradient(#1a1a1a, black); display: -webkit-box; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; flex-direction: column; -webkit-box-pack: center; justify-content: center; } body:after { -webkit-animation: fade 1000ms 100ms forwards; animation: fade 1000ms 100ms forwards; background: #000; bottom: 0; content: ''; left: 0; pointer-events: none; position: fixed; right: 0; top: 0; z-index: 100; } @-webkit-keyframes fade { 100% { opacity: 0; } } @keyframes fade { 100% { opacity: 0; } } .lock { background: #000; border-bottom: 1px solid #262626; border-left: 1px solid #262626; box-shadow: -1px 1px 0 #0f0f0f, -2px 2px 0 #0d0d0d, -3px 3px 0 #0a0a0a, -4px 4px 0 #080808, -8px 8px 16px rgba(0, 0, 0, 0.5); position: relative; z-index: 20; } .lock:before { background: -webkit-gradient(linear, left top, right top, from(#262626), to(#595959)); background: linear-gradient(90deg, #262626 0%, #595959 100%); content: ''; height: 1px; left: 0; pointer-events: none; position: absolute; top: 0; width: 100%; z-index: 1; } .lock:after { background: -webkit-gradient(linear, left bottom, left top, from(#262626), to(#595959)); background: linear-gradient(0deg, #262626 0%, #595959 100%); bottom: 0; content: ''; height: 100%; pointer-events: none; position: absolute; right: 0; top: 0; width: 1px; } .screen { background: #000; height: 40px; position: relative; } .screen:before { background: linear-gradient(45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.2) 100%); bottom: 0; content: ''; left: 0; pointer-events: none; position: absolute; right: 0; top: 0; z-index: 1; } .screen:after { background: -webkit-gradient(linear, left top, right top, from(#262626), to(#595959)); background: linear-gradient(90deg, #262626 0%, #595959 100%); bottom: 0; content: ''; height: 1px; left: 0; position: absolute; width: 100%; } .code, .status { font-family: 'Share Tech Mono', monospace; font-size: 1em; height: 40px; line-height: 42px; padding: 0 0.75em; position: absolute; } .code { color: #fff; left: 0; text-shadow: 0 0 15px #fff; } .status { -webkit-animation: pulse 1000ms infinite alternate; animation: pulse 1000ms infinite alternate; color: #f00; right: 0; text-shadow: 0 0 15.........完整代码请登录后点击上方下载按钮下载查看
网友评论0