一谣拣、??網(wǎng)站介紹
基于html+css+js制作的表白網(wǎng)頁代碼,可以直接替換文字和圖片即可使用
二较坛、??作品效果
??視頻演示
https://live.csdn.net/v/embed/237744
(title-16-HTML5慶祝生日蛋糕煙花特效)]
?? 截圖演示
三捐迫、?? 作品代碼
??HTML代碼
<!--
* @Author: your name
* @Date: 2021-05-13 13:53:15
* @LastEditTime: 2021-05-13 13:54:41
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \HTML5慶祝生日蛋糕煙花特效\index.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HTML5慶祝生日蛋糕煙花特效</title>
<link href="static/css/zzsc.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="static/css/style.css" />
</head>
<body>
<h1 data-splitting>生日快樂 Happy birthday ?<br />??</h1>
<script src="static/js/splitting.min.js"></script>
<script src="static/js/script.js"></script>
</body>
</html>
??CSS代碼
@charset "UTF-8";
body {
display: grid;
place-items: center;
height: 100vh;
overflow: hidden;
font-family: 'Gloria Hallelujah', cursive;
background: linear-gradient(#eb6383 25%, #fa9191 25% 50%, #ffe9c5 50% 75%, #b4f2e1 75%);
}
h1 {
font-size: 6.5vw;
text-align: center;
color: white;
text-shadow: 1px 1px 2px #eb6383;
}
.char,
.word {
display: inline-block;
}
.splitting .char {
animation: slide-in 1s cubic-bezier(0.17, 0.84, 0.4, 1.49) both;
animation-delay: calc(30ms * var(--char-index));
}
[data-word="??"] .char {
display: inline;
}
.splitting [data-word="??"] {
animation: bump-in 1s cubic-bezier(0.17, 0.84, 0.4, 1.49) both;
animation-delay: 1s;
}
@keyframes slide-in {
0% {
transform: scale(2) rotate(60deg);
opacity: 0;
}
}
@keyframes bump-in {
0% {
transform: scale(0);
opacity: 0;
}
}
particule {
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
width: 30px;
height: 30px;
box-shadow: 1px 1px 4px #eb6383;
}
四、??更多源碼
【干貨分享】自學(xué)編程的小伙伴可以前往我的 gitee 倉庫(持續(xù)更新中...)
??【web學(xué)習(xí)指南】從web基礎(chǔ)沟沙、計(jì)算機(jī)基礎(chǔ)到前端常用框架的教程,涵蓋前端大部分必備知識(學(xué)習(xí)指南 + 技術(shù)文章 + 資源分享)
Gitee倉庫地址(來個(gè)Star吧~): https://gitee.com/zhanyuqiu2022/my-app