css+js实现立体文字滚动广告牌灯箱效果代码
代码语言:html
所属分类:加载滚动
代码描述:css+js实现立体文字滚动广告牌灯箱效果代码,人物主体不动,后面的文字立体转弯滚动。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Paytone+One&display=swap'>
<style>
@import url(https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap);
.card,
.content,
body {
overflow: hidden;
}
body {
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
background: black;
}
.card,
.container {
display: flex;
align-items: center;
}
.card {
width: 1280px;
height: 720px;
margin: 0;
justify-content: center;
}
.container-full,
.content {
width: 1000px;
height: 562px;
}
.backgroundImage {
position: absolute;
width: 1000px;
}
.boyImage {
position: absolute;
width: 500px;
z-index: 2;
animation: 200s linear infinite blur;
}
.content {
border-radius: 40px;
animation: 200s linear infinite brightness;
}
.container {
justify-content: center;
}
.container-full,
.face {
display: flex;
align-items: center;
overflow: hidden;
}
.container-full {
margin: 0;
justify-content: center;
transform: scale(1);
animation: 200s linear infinite zoom-in;
}
.cube,
.face {
width: 870px;
height: 190px;
}
.cube {
position: relative;
transform-style: preserve-3d;
perspective: 480px;
transform-style: preserve-3d;
perspective-origin: 51% 70%;
}
.face,
.hue {
position: absolute;
}
.face {
background: 0 0;
border: 0 solid #000;
opacity: 0.5;
}
.bottom,
.top {
width: 870px;
height: 870px;
}
p {
white-space: nowrap;
overflow: hidden;
font-family: "Bebas Neue", sans-serif;
font-weight: 400;
font-size: calc(6em + (190px / 10) * 0.7);
padding-top: 20px;
color: #fff;
}
span {
color: red;
}
.front {
transform: translateZ(435px);
display: none;
}
.back {
transform: translateZ(-435px) rotateY(180deg) scaleX(-1);
}
.left {
transform: translateX(-435px) rotateY(-90deg) scaleX(-1);
}
.right {
transform: translateX(435px) rotateY(90deg) scaleX(-1);
}
.top {
transform: translateY(-435px) rotateX(90deg) scaleY(-1);
}
.bottom {
transform: translateY(-245px) rotateX(-90deg) scaleY(-1);
}
.left p {
margin-left: 480px;
animation: 200s linear infinite left;
}
.back p {
margin-left: -390px;
animation: 200s linear infinite back;
}
.right p {
margin-left: -1260px;
animation: 200s linear infinite right;
}
@keyframes left {
100% {
margin-left: -54000px;
}
}
@keyframes back {
100% {
margin-left: -54870px;
}
}
@keyframes right {
100% {
margin-left: -55740px;
}
}
.hue {
top: 0;
left: 0;
z-index: 3;
width: 100%;
height: 100%;
mix-blend-mode: overlay;
background: #1e5799;
background: radial-gradient(ellipse at center, #1e5799 0, #7db9e8 100%);
opacity: 1;
}
.hue.animated {
-webkit-animation: 8s infinite filter-animation;
animation: 8s infinite filter-animation;
}
.container-refle.........完整代码请登录后点击上方下载按钮下载查看
网友评论0