html生日祝福網(wǎng)站 html生日快樂網(wǎng)頁代碼 程序員專屬情人節(jié)表白網(wǎng)站

一、??網(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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容