复杂工况选材逻辑:盖茨皮带工业传动全系列适配总结
2026/9/5 3:59:43
且赴新程 —— 成长类 - html 表达,返回代码
返回代码
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>且赴新程|成长</title> <style> *{ margin:0; padding:0; box-sizing:border-box; } html,body{ width:100%; height:100%; overflow:hidden; } .banner{ width:100%; height:100%; position:relative; background:linear-gradient(-45deg,#4158D0,#C850C0,#FFCC70,#56CCF2); background-size:400% 400%; animation:bgGradientFlow 14s ease infinite; display:flex; flex-direction:column; justify-content:center; align-items:center; } /*浮动光点粒子*/ .dot{ position:absolute; border-radius:50%; filter:blur(2px); } .dot:nth-child(1){ width:14px;height:14px; background:#ffd770; left:12%;top:18%; animation:dotWave 8s ease-in-out infinite; animation-delay:0s; } .dot:nth-child(2){ width:18px;height:18px; background:#56e3ff; left:82%;top:32%; animation:dotWave 9s ease-in-out infinite; animation-delay:1.4s; } .dot:nth-child(3){ width:12px;height:12px; background:#f488c2; left:22%;top:74%; animation:dotWave 7s ease-in-out infinite; animation-delay:2.2s; } .dot:nth-child(4){ width:20px;height:20px; background:#9d88ff; left:72%;top:84%; animation:dotWave 10s ease-in-out infinite; animation-delay:3.1s; } .dot:nth-child(5){ width:15px;height:15px; background:#78e8b8; left:50%;top:10%; animation:dotWave 8.5s ease-in-out infinite; animation-delay:4s; } .dot:nth-child(6){ width:13px;height:13px; background:#ff9c81; left:38%;top:88%; animation:dotWave 9.2s ease-in-out infinite; animation-delay:1.8s; } .dot:nth-child(7){ width:16px;height:16px; background:#ffffff; left:6%;top:55%; animation:dotWave 7.5s ease-in-out infinite; animation-delay:0.6s; } .dot:nth-child(8){ width:11px;height:11px; background:#b0ffde; left:90%;top:60%; animation:dotWave 8.8s ease-in-out infinite; animation-delay:2.6s; } .dot:nth-child(9){ width:17px;height:17px; background:#ffb8e6; left:55%;top:92%; animation:dotWave 9.5s ease-in-out infinite; animation-delay:3.4s; } .banner h2{ font-size:48px; letter-spacing:12px; background:linear-gradient(90deg,#ffffff,#ffe89c,#8ee4ff); -webkit-background-clip:text; color:transparent; margin-bottom:26px; opacity:0; transform:translateY(36px) scale(0.94); animation:textUpZoom 1.5s ease-out forwards,colorShine 4s linear infinite 1.5s; } .banner .sub-title{ font-size:20px; color:#ffffff; letter-spacing:3px; text-shadow:0 0 8px rgba(255,255,255,0.5); opacity:0; transform:translateY(24px); animation:textUp 1.3s ease-out 0.7s forwards,softSwing 5s ease-in-out infinite 2s; } .banner .text-desc{ max-width:660px; margin-top:36px; font-size:18px; line-height:2.1; color:#fff; text-align:center; text-shadow:0 1px 6px rgba(0,0,0,0.15); opacity:0; transform:translateY(24px); animation:textUp 1.3s ease-out 1.4s forwards; } /*点击生成的烟花圆点*/ .click-circle{ position:absolute; border-radius:50%; pointer-events:none; animation:clickEffect 0.8s ease-out forwards; } @keyframes textUp{ to{ opacity:1; transform:translateY(0); } } @keyframes textUpZoom{ to{ opacity:1; transform:translateY(0) scale(1); } } @keyframes bgGradientFlow{ 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} } @keyframes dotWave{ 0%{transform:translateY(0px);opacity:0.35;} 50%{transform:translateY(-32px);opacity:0.9;} 100%{transform:translateY(0px);opacity:0.35;} } @keyframes softSwing{ 0%{transform:translateX(-4px);} 50%{transform:translateX(4px);} 100%{transform:translateX(-4px);} } @keyframes colorShine{ 0%{background-position:0% 50%;} 100%{background-position:200% 50%;} } /*点击扩散特效动画*/ @keyframes clickEffect{ 0%{ transform:scale(0); opacity:0.8; } 100%{ transform:scale(3); opacity:0; } } </style> </head> <body> <div class="banner" id="wrap"> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> <h2>且赴新程</h2> <div class="sub-title">携成长之光,奔赴前路山海</div> <div class="text-desc"> 告别昨日的迷茫与忐忑,收起沿途收获的温柔与力量。成长从不是终点,而是一次次整装出发。不念过往,不畏将来,带着沉淀下来的自己,步履不停,向着更远的光亮前行。 </div> </div> <script> const wrap=document.getElementById("wrap"); const colors=["#ffd770","#56e3ff","#f488c2","#9d88ff","#78e8b8"]; wrap.addEventListener("click",function(e){ for(let i=0;i<6;i++){ let circle=document.createElement("div"); circle.className="click-circle"; let size=Math.random()*12+6; circle.style.width=size+"px"; circle.style.height=size+"px"; circle.style.left=(e.clientX)+"px"; circle.style.top=(e.clientY)+"px"; circle.style.background=colors[Math.floor(Math.random()*colors.length)]; wrap.appendChild(circle); setTimeout(()=>circle.remove(),800); } }) </script> </body> </html>创建文本文档
显示文件扩展名
修改文件名称
添加代码内容——通过记事本打开
更改代码,注意保存ctrl+s
访问效果