js+svg实现网飞版三体中倒计时动画效果代码
代码语言:html
所属分类:动画
代码描述:js+svg实现网飞版三体中倒计时动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
:root {
--transition-animation-duration: 0.25s;
--bg-x: -25%;
--bg-y: -25%;
}
html,
body {
height: 100%;
background: #030507;
display: flex;
flex-direction: row;
place-items: center;
place-content: center;
}
templates {
display: none;
}
.flex {
display: flex;
flex-direction: row;
place-items: center;
place-content: center;
}
.countdown {
width: 500px;
max-width: 90vw;
}
.digit,
.divider {
display: flex;
margin: 0 -10px;
}
.digit svg,
.divider svg {
width: 100%;
}
.digit svg path:last-of-type,
.divider svg path:last-of-type {
transform: scaleY(2.5) scaleX(0.4) !important;
filter: blur(20px) !important;
}
.digit {
transition: var(--transition-animation-duration) cubic-bezier(0, 0, 0, 0.97);
}
.digit.animate-transition {
transform: scale(1.1);
mix-blend-mode: plus-lighter;
filter: brightness(1.5) drop-shadow(2px 2px 14px #d1450e);
}
.digit.animate-transition path {
stroke: rgba(255, 106, 40, 0.95) !important;
}
.bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: url("//repo.bfw.wiki/bfwrepo/image/660f2b8d124d4.png");
background-size: cover;
background-position: center;
opacity: 0.1;
transform: translateX(var(--bg-x)) translateY(var(--bg-y)) scale(1.5);
animation: blink 1s ease-out infinite alternate;
}
.shadow {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0