anime+css实现时间翻拍滚动控制效果代码
代码语言:html
所属分类:其他
代码描述:anime+css实现时间翻拍滚动控制效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
position: absolute;
overflow: hidden;
width: 100%;
height: 100%;
background: #1a1a1a;
font-family: monospace;
}
#clock {
font-size: 32px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
width: 40ch;
height: 20ch;
padding: 4ch;
border-radius: 4ch;
/* background: #202020;*/
}
#digital {
perspective: 1000px;
display: flex;
gap: 1ch;
height: 4ch;
margin-top: 4ch;
margin-bottom: 4ch;
}
#digital::after {
content: "";
display: block;
position: absolute;
top: -150%;
left: -50%;
width: 200%;
height: 400%;
background-image: linear-gradient(180deg, #1a1a1a 10%, #1a1a1a66 30%, #1a1a1a00 40%, #1a1a1a00 60%,#1a1a1a66 70%, #1a1a1a 90%);
}
.slot {
position: relative;
width: 1ch;
height: 2ch;
color: #fff;
display: flex;
transform-style: preserve-3d;
align-items: center;
justify-content: center;
text-align: center;
font-size: 2em;
}
.colon {
transform: translateZ(3ch);
}
.numbers > div {
position: absolute;
transform-style: preserve-3d;
w.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0