🎅挂件馆🌟铭牌馆✨️靓标库🧚‍♂️名人堂🦄宝可梦🍎水果机🥊猜拳🏧黑市🏧银行💹抽奖
   🎁
返回列表 发布新帖
查看: 195|回复: 0

[代码技巧] 子比主题 – 文章后渐变通知栏美化

[复制链接]
连续签到LV.1
起源之星
任务·年会员
累计签到LV.3
+2
00001 FLLTCN
社区贡献
344 214 23798
等级头衔
Icon组别 : 管理员
Icon等级 :

积分成就
   钻石 : 196 颗
   贡献 : 13641 点
   金币 : 4 枚
Icon在线时间 : 1924 小时
Icon注册时间 : 2024-11-22
Icon最后登录 : 2026-7-22

荣誉勋章

连续签到LV.1起源之星任务·年会员累计签到LV.3

送礼物:3 收礼物:1
00001 FLLTCN 实名认证 特邀大神 诚信商家 信誉担保 精华作者+ 官方团队 vip vip-year 发表于 2025-10-5 22:22:02 | 查看全部 |阅读模式 浙江金华

交易无需等待,成交就是现在,全面资源整合网络大咖云集,让你轻松玩转互联网!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
这是一款给子比主题文章后加一个渐变通知栏的样式美化,这款是虽然腾飞博客借鉴别人站的,不过一看应该就是ai写的,效果还是不错,喜欢的自行部署吧!
image.webp
代码部署
定位:子比主题–>>文章&列表–>>文章页面–>>在文章内容后-插入内容,将下面的代码放里面即可!
  1. <style>
  2. .custom_notice_banner_wrapper_20240712{width:100%;display:flex;flex-direction:column;gap:15px;margin:20px 0;font-family:"PingFang SC","Microsoft YaHei",sans-serif}.custom_notice_banner_20240712{width:100%;height:50px;border-radius:12px;overflow:hidden;position:relative;box-shadow:0 4px 20px rgba(0,0,0,0.15);transition:all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);border:1px solid rgba(255,255,255,0.2)}.custom_notice_banner_20240712:hover{transform:translateY(-3px) scale(1.01);box-shadow:0 8px 25px rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.4)}.custom_notice_banner_content_20240712{display:flex;align-items:center;justify-content:center;height:100%;width:100%;position:relative;z-index:5;padding:0 20px}.custom_notice_banner_icon_20240712{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,0.25);backdrop-filter:blur(5px);margin-right:15px;color:white;box-shadow:0 2px 10px rgba(0,0,0,0.1);animation:custom_notice_banner_pulse_20240712 2s infinite}.custom_notice_banner_text_20240712{color:white;font-size:16px;font-weight:500;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,0.2);letter-spacing:1px;background:rgba(255,255,255,0.1);padding:6px 15px;border-radius:20px;backdrop-filter:blur(5px)}.custom_notice_banner_20240712.purple_gradient{background:linear-gradient(-45deg,#9c27b0,#673ab7,#3f51b5,#e040fb,#9c27b0);background-size:400% 400%;animation:custom_notice_banner_gradient_20240712 15s ease infinite}.custom_notice_banner_20240712.orange_gradient{background:linear-gradient(-45deg,#ff9800,#ff5722,#ff4500,#ff9100,#ff9800);background-size:400% 400%;animation:custom_notice_banner_gradient_20240712 15s ease infinite}.custom_notice_banner_20240712.green_gradient{background:linear-gradient(-45deg,#8bc34a,#4caf50,#009688,#00c853,#8bc34a);background-size:400% 400%;animation:custom_notice_banner_gradient_20240712 15s ease infinite}.custom_notice_banner_glow_20240712{position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(255,255,255,0.3) 0%,rgba(255,255,255,0) 70%);opacity:0;z-index:2;animation:custom_notice_banner_glow_20240712 8s infinite}.custom_notice_banner_particles_20240712{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;z-index:3}.custom_notice_banner_particles_20240712::before,.custom_notice_banner_particles_20240712::after{content:"";position:absolute;background:rgba(255,255,255,0.4);border-radius:50%;animation:custom_notice_banner_float_20240712 6s infinite linear}.custom_notice_banner_particles_20240712::before{width:8px;height:8px;top:20%;left:10%;animation-delay:0s;filter:blur(1px)}.custom_notice_banner_particles_20240712::after{width:12px;height:12px;top:60%;left:80%;animation-delay:2s;filter:blur(2px)}.custom_notice_banner_20240712::after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);z-index:4;animation:custom_notice_banner_shine_20240712 3s infinite}@keyframes custom_notice_banner_gradient_20240712{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes custom_notice_banner_shine_20240712{0%{left:-100%}20%{left:100%}100%{left:100%}}@keyframes custom_notice_banner_pulse_20240712{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}@keyframes custom_notice_banner_glow_20240712{0%{opacity:0;transform:translate(0%,0%)}25%{opacity:0.5}50%{opacity:0;transform:translate(10%,10%)}75%{opacity:0.5}100%{opacity:0;transform:translate(0%,0%)}}@keyframes custom_notice_banner_float_20240712{0%{transform:translateY(0) translateX(0);opacity:0}10%{opacity:1}90%{opacity:1}100%{transform:translateY(-30px) translateX(30px);opacity:0}}@media (max-width:768px){.custom_notice_banner_text_20240712{font-size:14px;padding:5px 10px}.custom_notice_banner_20240712{height:45px}.custom_notice_banner_icon_20240712{width:25px;height:25px;margin-right:10px}}
  3. </style>
  4. <div class="custom_notice_banner_wrapper_20240712">
  5.   <div class="custom_notice_banner_20240712 purple_gradient">
  6.     <div class="custom_notice_banner_glow_20240712"></div>
  7.     <div class="custom_notice_banner_content_20240712">
  8.       <div class="custom_notice_banner_icon_20240712">
  9.         <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2">
  10.           <path d="M5 12h14M12 5l7 7-7 7"></path>
  11.         </svg>
  12.       </div>
  13.       <span class="custom_notice_banner_text_20240712">查看更多心仪的内容 按Ctrl+D收藏我们</span>
  14.     </div>
  15.     <div class="custom_notice_banner_particles_20240712"></div>
  16.   </div>
  17.   
  18.   <div class="custom_notice_banner_20240712 orange_gradient">
  19.     <div class="custom_notice_banner_glow_20240712"></div>
  20.     <div class="custom_notice_banner_content_20240712">
  21.       <div class="custom_notice_banner_icon_20240712">
  22.         <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2">
  23.           <circle cx="12" cy="12" r="10"></circle>
  24.           <path d="M12 8v4M12 16h.01"></path>
  25.         </svg>
  26.       </div>
  27.       <span class="custom_notice_banner_text_20240712">部分内容来自于网络 如有侵权请联系站长删除</span>
  28.     </div>
  29.     <div class="custom_notice_banner_particles_20240712"></div>
  30.   </div>
  31.   
  32.   <div class="custom_notice_banner_20240712 green_gradient">
  33.     <div class="custom_notice_banner_glow_20240712"></div>
  34.     <div class="custom_notice_banner_content_20240712">
  35.       <div class="custom_notice_banner_icon_20240712">
  36.         <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2">
  37.           <path d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"></path>
  38.         </svg>
  39.       </div>
  40.       <span class="custom_notice_banner_text_20240712">腾飞博客欢迎你来投稿文章</span>
  41.     </div>
  42.     <div class="custom_notice_banner_particles_20240712"></div>
  43.   </div>
  44. </div>
复制代码
来自圈子: 子比主题

本帖被以下淘专辑推荐:

路虽远,行则将至;事虽难,做则必成。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

飞流广播+ 发布

飞流这论坛到底有没有资本给我投资一下啊!
07-20 22:07
系统消息:飞流安卓客户端APP已上线,请在QQ群(123129)群文件内获取下载。
02-21 02:22
01-24 12:40
站内通告

📢 六月份后均不在线,请悉知

提供资源交易、信息共享、靓号交流、技术变现、学习问答、兴趣娱乐等全面服务。

1.丰富功能系统,扩展社区特色玩法,打造最好的互联网聚集圈子。

2.准确信息真实交易,安全快捷又方便,让虚拟交易面对面。

3. 天上不会掉馅饼,话术骗术迷人心,切勿脱离平台线下交易,被骗与平台无关!

4. 欺诈骗钱,违规违法将视情受到警告&禁言&封号甚至检举至👮🏻‍♀️处理!

官方Q群:1003810038钉推群:BAYR2383 站长QQ:3388700000

飞流论坛(FLLT.CN),一个专注于资源信息发布、虚拟网络交易、技术学习与娱乐社交的交流平台。
  • 钉钉新帖推送群
  • 官方交流QQ群
  • 站长唯一微信号

💥客户端|🧿小黑屋|📴手机页|飞流网 |网站地图

GMT+8, 2026-7-22 22:12 , Processed in 0.057555 second(s), 66 queries, MemCached On , Gzip On.

飞流论坛 HanAnalytics icp

Copyright © 2024-2026 飞流网 版权所有 All Rights Reserved. X3.5

快速回复 返回顶部 返回列表