• 手机版

    扫码体验手机版

  • 微信公众号

    扫码关注公众号

国内首家协议开发

软芯音视解码保护平台

在线
客服

发布
需求

在线
聊天

天盟
APP

天盟APP下载

关注
微信

微信扫一扫访问
顶部

用css3写了个react图标

Document            .container{            width: 400px;            height: 400px;            background-color: #ccc;            margin: 100px auto;            position: relative;        }        .container .part{            box-sizing: border-box;            width: 360px;            height: 120px;            border-radius: 180px/60px;            border: 18px solid #61dafb;            position: absolute;            left: 20px;            top: 140px;                    }        .container .one{            animation: rubberBand1 1s linear infinite;        }        @keyframes rubberBand1 {                from {                    transform: scale3d(1, 1, 1) rotate(57deg);                }                30% {                    transform: scale3d(1.25, 0.75, 1) rotate(57deg);                }                40% {                    transform: scale3d(0.75, 1.25, 1) rotate(57deg);                }                50% {                    transform: scale3d(1.15, 0.85, 1) rotate(57deg);                }                65% {                    transform: scale3d(.95, 1.05, 1) rotate(57deg);                }                75% {                    transform: scale3d(1.05, .95, 1) rotate(57deg);                }                to {                    transform: scale3d(1, 1, 1) rotate(57deg);                }}        .container .two{            animation: rubberBand2 1s linear infinite;        }        @keyframes rubberBand2 {            from {                transform: scale3d(1, 1, 1) rotate(123deg);            }            30% {                transform: scale3d(1.25, 0.75, 1) rotate(123deg);            }            40% {                transform: scale3d(0.75, 1.25, 1) rotate(123deg);            }            50% {                transform: scale3d(1.15, 0.85, 1) rotate(123deg);            }            65% {                transform: scale3d(.95, 1.05, 1) rotate(123deg);            }            75% {                transform: scale3d(1.05, .95, 1) rotate(123deg);            }            to {                transform: scale3d(1, 1, 1) rotate(123deg);            }}        .ball{            width: 60px;            height: 60px;            background-color: #61dafb;            border-radius: 50%;            position: absolute;            left: 50%;            top: 50%;            margin-top: -30px;            margin-left: -30px;        }                    
        
        
        
   
我发现如果你定义了transform,animate.css会把你写的效果覆盖,但是加了!important又会没动画效果,因为上面的办法就很笨,给写了transform的元素自己加动画,有不有什么好办法可以解决?然后你们有不有什么更炫酷的做法

免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。

版权声明:作者保留权利,不代表天盟立场。

使用道具 举报

发新帖

发布任务需求已有1031168位用户正在使用天盟网服务

发布分类: *
任务预算: *
需求内容: *
手机号码: *
任务商家报价为
  • 预算价 :
  • 成交价 :
  • 完工期 :
  • 质保期 :

* 最终任务项目以服务商报价、双方协商为准!