闪闪发光的文字特效代码

我是一排闪闪发光的文字,看起来是不是特别的绚烂!


代码如下:

<b id="nr">我是一排闪闪发光的文字,看起来是不是特别的绚烂!

<font color="#D8D8D8">

</font></b>

<b id="nr"><font color="#D8D8D8">

<script type="text/javascript" language="javascript" src="assets/js/jquery.min.js"></script>

<script type="text/javascript" language="javascript" src="assets/js/layer.js"></script>

<script type="text/javascript" language="javascript" src="assets/js/ajax.js?v=4.1"></script>

<style>

#nr{

    font-size:15px;

    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 3s infinite linear;

}

@keyframes masked-animation {

    0% {

        background-position: 0 0;

    }

    100% {

        background-position: -100%, 0;

    }

}

</style><script type="text/javascript" src="//js.users.51.la/20987343.js"></script>

</font></b>

网页代码 2021-09-07 19:17:18 通过 网页 浏览(84)

共有0条评论!

发表评论

更换一道题!