zoukankan      html  css  js  c++  java
  • 七夕-心形表白-简单css代码

    今天你要和谁过?

    今天你要怎么过??

    今天去哪里吃???

    公司的三连问,对于一些单身狗有点招架不住啊。

    在此送上一个薄礼,来安慰下受伤的心灵...

    确定是安慰不是连环打击嘛.....

    回答:确定!

    来吧**看效果图上代码:(静态图,实际是动态的)

    HTML:

    <div class="warp">
    <div class="left"></div>
    <div class="right"></div>
    <div class="square"></div>
    </div>

    css:

    .warp{
    500px;
    height: 600px;
    margin: 70px auto;
    /*border:1px solid tomato;写上这个便于确定定位的位置,最后在关掉*/
    position: relative;
    animation:heart 0.8s linear infinite ;/*动画效果*/
    transition:all 0.4s ease ;
    }
    .left{
    300px;
    height: 300px;
    border-radius:50%;
    background-color: tomato;
    display: inline-block;
    }
    .right{
    300px;
    height: 300px;
    border-radius:50%;
    background-color: tomato;
    position: absolute;
    right:0;
    top:0;
    }
    .square{
    300px;
    height: 300px;
    background-color: tomato;
    position: absolute;
    right:200px;
    top:0px;
    transform:translate(100px,100px) rotate(45deg);
    }
    @keyframes heart{
    from{
    transform: scale(1);
    }
    to{
    transform: scale(1.2);
    }
    }

    是连环打击!(开下玩笑,表白❤技巧拿走了吧……)

     

    欢迎大家提出宝贵意见,大神们请多多指教。

     

  • 相关阅读:
    Bzoj1305 [CQOI2009]dance跳舞
    Bzoj1269 [AHOI2006]文本编辑器editor
    Bzoj2957 楼房重建
    POJ1704 Georgia and Bob
    UVa11427 Expect the Expected
    POJ2096 Collecting Bugs
    Bzoj3041 水叮当的舞步
    Bzoj3894 文理分科
    Bzoj1426 收集邮票
    Bzoj1076 [SCOI2008]奖励关
  • 原文地址:https://www.cnblogs.com/snowbxb/p/11316601.html
Copyright © 2011-2022 走看看