给网站添加渐变闪亮移动通知公告代码

下载地址已下载 0 次

服务协议

文章介绍
发表评论
更新日志
历史版本

前言

给网站添加渐变闪亮移动通知公告代码,我最近在网上看到别人网站上的头顶字母移动效果不错有很多人问我这个如何做到的,这个我看了一下还挺美观,所以就扒下来了。

演示截图

<div class="textwidget custom-html-widget">
<style>#nr{font-size:20px;margin: 0;background: -webkit-linear-gradient(left,#ffffff,#ff0000 6.25%,#ff7d00 12.5%,#ffff00 18.75%,#00ff00 25%,#00ffff 31.25%,#0000ff 37.5%,#ff00ff 43.75%,#ffff00 50%,#ff0000 56.25%,#ff7d00 62.5%,#ffff00 68.75%,#00ff00 75%,#00ffff 81.25%,#0000ff 87.5%,#ff00ff 93.75%,#ffff00 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-size: 200% 100%;animation: masked-animation 2s infinite linear;}@keyframes masked-animation {0% {background-position: 0 0;}100% {background-position: -100%, 0;}}</style><div style="background-color:#333;border-radius:25px;box-shadow:0px 0px 5px #f200ff;padding:5px;margin-top:10px;margin-bottom:0px;"><marquee>
<b id="nr">公告:欢迎来到源码库ymkuz.com</b> </marquee></div>
</div>

 

THE END
© 版权声明
点赞1286 分享
暂无内容
暂无更新日志
暂无内容
暂无历史版本

给网站添加渐变闪亮移动通知公告代码

前言

给网站添加渐变闪亮移动通知公告代码,我最近在网上看到别人网站上的头顶字母移动效果不错有很多人问我这个如何做到的,这个我看了一下还挺美观,所以就扒下来了。

演示截图

<div class="textwidget custom-html-widget">
<style>#nr{font-size:20px;margin: 0;background: -webkit-linear-gradient(left,#ffffff,#ff0000 6.25%,#ff7d00 12.5%,#ffff00 18.75%,#00ff00 25%,#00ffff 31.25%,#0000ff 37.5%,#ff00ff 43.75%,#ffff00 50%,#ff0000 56.25%,#ff7d00 62.5%,#ffff00 68.75%,#00ff00 75%,#00ffff 81.25%,#0000ff 87.5%,#ff00ff 93.75%,#ffff00 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-size: 200% 100%;animation: masked-animation 2s infinite linear;}@keyframes masked-animation {0% {background-position: 0 0;}100% {background-position: -100%, 0;}}</style><div style="background-color:#333;border-radius:25px;box-shadow:0px 0px 5px #f200ff;padding:5px;margin-top:10px;margin-bottom:0px;"><marquee>
<b id="nr">公告:欢迎来到源码库ymkuz.com</b> </marquee></div>
</div>

 

© 版权声明
THE END
点赞1286 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容