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

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


点击查看演示站

代码如下:

<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> 


2,877 ° 来自:PC 天津市
上一篇: 随机生成手持身份证照软件
下一篇: 纯代码给网页增加右侧客服代码
您可能还喜欢这些:
版权声明 1 本网站名称:宋佳乐博客
2 本站永久网址:www.songjiale.com
3 本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长 QQ2801910651进行删除处理。
4 本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
5 本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
6 本站资源大都存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。
7 如无特别声明本文即为原创文章仅代表个人观点,版权归《宋佳乐博客》所有,欢迎转载,转载请保留原文链接。
8 如果您想第一时间收到本博最新文章可微信搜索公众号《佳乐博客》关注公众号第一时间获取最新消息。
广告位联系QQ2801910651 广告位联系QQ2801910651丨或者在线留言留下您的联系方式我们客服主动与您联系! Document
提醒图片

您已进入网站内部页面,请勿相信各种广告链接,请不要在本站输入任何账号密码!!!

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

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