使用C3的一些新属性绘制谷歌浏览器的图标

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: lightskyblue;
        }

        .container {
            width: 400px;
            height: 400px;
            border: 1px solid #999;
            box-sizing: border-box;
            border-radius: 50%;
            margin: 200px auto;
            position: relative;
            overflow: hidden;
            background-color: yellow;
            transform: rotate(-80deg);

        }

        .container::before {
            content: "";
            width: 100px;
            height: 100px;
            /*border: 1px solid black;*/
            background-color: deepskyblue;
            border-radius: 50%;
            box-shadow: 0px 0px 0px 10px whitesmoke;
            position: absolute;
            top: 150px;
            left: 150px;
            z-index: 1;
        }

        .one {
            width: 300px;
            height: 300px;
            /*border: 1px solid black;*/
            position: absolute;
            transform: skew(-30deg);
            left: -12px;
            top: -100px;
            background-color: green;
        }

        .one::before {
            content: "";
            width: 300px;
            height: 200px;
            /*border: 1px solid black;*/
            position: absolute;
            top: 159px;
            left: 30px;
            background-color: green;
        }

        .two {
            width: 300px;
            height: 300px;
            /*border: 1px solid black;*/
            position: absolute;
            transform: skew(-30deg, 60deg);
            left: 286px;
            top: 160px;
            background-color: red;
        }

        .two::before {
            content: "";
            width: 40px;
            height: 300px;
            /*border: 1px solid black;*/
            position: absolute;
            top: 26px;
            left: -8px;
            transform: rotate(10deg);
            background-color: red;
        }

        @keyframes autoRotate {
            from {

            }
            to {
                transform: rotate(3600deg);
            }
        }

        .animate {
            animation: autoRotate 30s linear infinite;
        }
    </style>
</head>
<body>
<div class="container animate">
    <div class="one"></div>
    <div class="two"></div>
    <div class="three"></div>
</div>
</body>
</html>

//利用Css3里面的一些新属性,做了一个谷歌浏览器图标

转载于:https://www.cnblogs.com/199316xu/p/6435332.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值