ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

且赴新程——成长类-html表达

且赴新程——成长类-html表达 通过豆包创建的完成方法步骤1.提示词且赴新程 —— 成长类 - html 表达返回代码返回代码!DOCTYPE html html langzh-CN head meta charsetUTF-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 classbanner idwrap div classdot/div div classdot/div div classdot/div div classdot/div div classdot/div div classdot/div div classdot/div div classdot/div div classdot/div h2且赴新程/h2 div classsub-title携成长之光奔赴前路山海/div div classtext-desc 告别昨日的迷茫与忐忑收起沿途收获的温柔与力量。成长从不是终点而是一次次整装出发。不念过往不畏将来带着沉淀下来的自己步履不停向着更远的光亮前行。 /div /div script const wrapdocument.getElementById(wrap); const colors[#ffd770,#56e3ff,#f488c2,#9d88ff,#78e8b8]; wrap.addEventListener(click,function(e){ for(let i0;i6;i){ let circledocument.createElement(div); circle.classNameclick-circle; let sizeMath.random()*126; circle.style.widthsizepx; circle.style.heightsizepx; circle.style.left(e.clientX)px; circle.style.top(e.clientY)px; circle.style.backgroundcolors[Math.floor(Math.random()*colors.length)]; wrap.appendChild(circle); setTimeout(()circle.remove(),800); } }) /script /body /html2.展示代码效果创建文本文档显示文件扩展名修改文件名称添加代码内容——通过记事本打开更改代码注意保存ctrls访问效果
返回列表