just-animate实现一个手机任务栏动画弹出动画效果代码
代码语言:html
所属分类:动画
代码描述:just-animate实现一个手机任务栏动画弹出动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <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/open-iconic.min.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300'> <style> .status-bar { --x: 0.15; transform-origin: 50% 50%; transform: scaleX(var(--x)); } .status-bar__item { --opacity: 0; --scale: 0.8; transform-origin: 50% 50%; opacity: var(--opacity, 1); transform: scale(var(--scale)); } .status-bar { min-width: 340px; background: #35303d; padding: 16px; border-radius: 8px; box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px; } .status-bar__list { display: flex; align-items: center; } .status-bar__item { margin: 0 6px; } .status-bar__spacer { flex: 1; } .status-bar .oi { font-size: 0.9rem; display: block; } html { height: 100%; display: flex; } body { position: relative; margin: auto; background: #151318; font-family: "Roboto Mono", monospace; font-size: 20px; color: #fff; } .replay { position: absolute; top: 100px; left: 50%; cursor: pointer; background: transparent; border-color: transparent; color: inherit; transform: translateX(-50%); } .replay .oi { font-size: 1.5rem; } </style> </head> <body > <nav class="status-bar"> <ul class="status-bar__list"> <li class="status-bar__item js-time">08:30</li> <li class="status-bar__spacer"></li> <li class="status-bar__item"><span class="oi" data-glyph="clock"></span></li> <li class="status-bar__item"><span class="oi" data-glyph="bluetooth"></span></li> <li class="status-bar.........完整代码请登录后点击上方下载按钮下载查看
网友评论0