纯代码给网站添加好看的漂浮广告代码

纯代码给网站添加好看的漂浮广告代码


点击查看演示站

代码如下:

<div id="rbutton" style="right: 0px;">
    <svg width="100%" height="100%" id="rot">
        <circle r="33" cx="40" cy="40" stroke="red" stroke-width="1" fill="transparent"></circle>
        <circle r="5" cx="35" cy="6" fill="red"></circle>
        <circle r="26" cx="50%" cy="50%" fill="red"></circle>
    </svg>
    <svg width="100%" height="100%" id="rot2">
        <circle r="33" cx="40" cy="40" stroke="red" stroke-width="1" fill="transparent"></circle>
        <circle r="6" cx="6" cy="40" fill="red"></circle>
    </svg>
    <div class="in">
        <a href="http://123.songjiale.com" target="_blank">
            <span>制作</span><span>网站</span>
        </a>
    </div>
</div>

<style type="text/css">

#rbutton {
    position: fixed;
    right: 0px;
    top: 50%;
    width: 80px;
    height: 80px;
    transition: right 1s;
    z-index: 9999999;
}
#rot {
    position: absolute;
    top: 0px;
    -webkit-animation: rot 8s linear infinite;
}
circle[Attributes Style] {
    r: 33;
    cx: 40;
    cy: 40;
    stroke: green;
    stroke-width: 1;
    fill: transparent;
}
circle[Attributes Style] {
    r: 5;
    cx: 35;
    cy: 6;
    fill: green;
}
circle[Attributes Style] {
    r: 26;
    cx: 50%;
    cy: 50%;
    fill: green;
}
#rot2 {
    position: absolute;
    top: 0px;
    -webkit-animation: rot 12s linear infinite;
}
circle[Attributes Style] {
    r: 33;
    cx: 40;
    cy: 40;
    stroke: green;
    stroke-width: 1;
    fill: transparent;
}
circle[Attributes Style] {
    r: 6;
    cx: 6;
    cy: 40;
    fill: green;
}
@-webkit-keyframes rot{
    0%{
        -webkit-transform:rotatez(0deg) rotatez(180deg);
    }

    100%{
        -webkit-transform:rotatez(180deg)  rotatez(360deg);
    }
}
#rbutton .in a {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    line-height: 1;
    font-size: 16px;
    text-decoration: none;
    color:#fff;
}
</style> 


612 ° 来自:PC 天津市
上一篇: 随机生成手持身份证照软件
下一篇: 纯代码给网页增加右侧客服代码
您可能还喜欢这些:

亲,沙发正空着,还不快来抢?

评论审核未开启 记住我的个人信息 回复后邮件通知我
Back to Top