hue动画效果
代码语言:html
所属分类:动画
代码描述:hue动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono:700&display=swap");
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #1B1B1B;
color: white;
font-family: 'IBM Plex Mono', monospace;
font-size: 20vw;
}
h1 {
margin: 0;
font-size: 20vw;
}
.hue-cold, .hue-hot {
position: absolute;
z-index: -1;
}
.hue-cold {
display: flex;
align-items: center;
justify-content: center;
color: blue;
transform: translateY(-10%);
}
.hue-cold span {
position: absolute;
}
.hue-cold span:nth-of-type(1) {
animation: a_hue-cold 4s linear infinite;
}
.hue-cold span:nth-of-type(2) {
animation: a_hue-cold 4s linear infinite 1s;
}
.hue-cold span:nth-of-type(3) {
animation: a_hue-cold 4s linear infinite 2s;
}
.hue-cold span:nth-of-type(4) {
animation: a_h.........完整代码请登录后点击上方下载按钮下载查看
网友评论0