admin管理员组文章数量:1794759
生日主题的烟花特效HTML,CSS,JS
图片展
完整代码
代码语言:javascript代码运行次数:0运行复制<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>生日烟花特效</title>
<style>
body {
margin: 0;
overflow: hidden;
background: #000;
color: white;
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#fireworksCanvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.happy-birthday {
position: relative;
z-index: 10;
font-size: 3rem;
font-weight: bold;
text-align: center;
color: #fff;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
0 0 30px rgba(255, 255, 0, 0.8),
0 0 40px rgba(255, 0, 0, 0.8);
animation: glow 2s infinite alternate;
}
@keyframes glow {
from {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.6),
0 0 20px rgba(255, 255, 0, 0.6),
0 0 30px rgba(255, 0, 0, 0.6);
}
to {
text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
0 0 40px rgba(255, 255, 0, 0.8),
0 0 60px rgba(255, 0, 0, 0.8);
}
}
</style>
</head>
<body>
<canvas id="fireworksCanvas"></canvas>
<div class="happy-birthday">
本文标签:
生日主题的烟花特效HTMLcssjs
版权声明:本文标题:生日主题的烟花特效HTML,CSS,JS 内容由林淑君副主任自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1754250868a1700420.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论