首页动态在线客服漂浮代码——旋转圆圈


<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="https://vip5-kf9.kuaishang.cn/bs/im.htm?cas=57364___739925&amp;fi=66266&amp;ism=1&amp;sText=M_right_djzx">
            <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>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值