玩CSS3动画(有就更新)

编辑图标css3
效果图这里写图片描述

//React
import React, {Component} from "react";
import "./Feedback.component.css";

export default class Feedback extends Component {

  render() {

    return (
      <React.Fragment>
        <div className="blue-circle">
          <div className="white-dialog">
            <div className="blue-point"></div>
          </div>
        </div>
        <p className="feedback-words">反馈</p>
      </React.Fragment>
    );
  }
}
//css
.blue-circle{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 1s;

    width: 36px;
    height: 36px;

    background-color: #1890FF;
    box-shadow: 0 2px 4px 0 rgba(24,144,255,0.50);

    border-radius: 50%;
    cursor: pointer;
}
.blue-circle:hover{
    transform: scale(1.02);
    box-shadow: 0 3px 6px 0 rgba(24,144,255,0.50);
}
.white-dialog{

    position: relative;
    width: 24px;
    height: 20px;

    background-color: #FFFFFF;

    border-radius: 12px;
}
.white-dialog:after{
    content:"";
    position: absolute;
    top:14px;
    left:0px;

    width: 0px;
    height: 0px;
    border-bottom: 8px solid white;
    border-left: 5px solid rgba(0,0,0,0);
    border-right: 5px solid rgba(0,0,0,0);
    transform: rotate(198deg);
}
.blue-point{
    content: '';
    position: absolute;
    top:46%;
    left: 46%;
    z-index: 10;

    width: 2px;
    height:2px;
    background: #1890FF;
    border-radius: 50%;

}
.blue-point:before{
    content: '';
    position: absolute;
    z-index: 10;

    right: 5px;

    width: 2px;
    height: 2px;
    background: #1890FF;
    border-radius: 50%;

}
.blue-point:after{
    content: '';
    position: absolute;
    z-index: 10;

    left: 5px;

    width: 2px;
    height: 2px;
    background: #1890FF;
    border-radius: 50%;
}
.feedback-words{
    display: block;
    font-family: PingFangSC-Regular;
    font-size: 12px;
    color: rgba(0,0,0,0.65);
    margin-top:4px;
}
.feedback-container{
    display: flex;
    flex-wrap:wrap;
    justify-content: center;
    width: 40px;
}
.feedback{
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url("/common/feedback.svg");
}
.feedback:hover{
    transform: scale(1.02);
    box-shadow: 0 3px 6px 0 rgba(24,144,255,0.50);
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值