<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>闪动广告牌示例</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
margin: 0;
}
.billboard {
width: 400px;
height: 200px;
background-color: #ff5722;
color: white;
display: flex;
justify-content: center;
align-items: center;
font-size: 32px;
font-weight: bold;
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
text-align: center;
padding: 20px;
position: relative;
overflow: hidden;
animation: flash 2s infinite alternate;
}
.billboard::before {
content: "";
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
background: linear-gradient(45deg,
#ff5722, #ff9800, #ff5722, #ff9800);
background-size: 400% 400%;
z-index: -1;
border-radius: 15px;
animation: gradient 8s ease infinite;
}
@keyframes flash {
0% {
opacity: 0.8;
transform: scale(0.98);
}
100% {
opacity: 1;
transform: scale(1.02);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.url {
position: absolute;
bottom: 10px;
right: 10px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
}
</style>
</head>
<body>
<div class="billboard">
限时特惠!<br>全场5折起!
<div class="url"></div>
</div>
</body>
</html>
闪动广告牌示例
于 2025-05-26 17:23:07 首次发布
778

被折叠的 条评论
为什么被折叠?



