zoukankan      html  css  js  c++  java
  • 心跳动画

    这个心制作稍微有点难度,关键旋转后的对照
    <style type="text/css">
            .heart{
                200px;
                height: 180px;
                position: relative;
                animation: heartAnimation 2s infinite;
            }
            .heart::before,.heart::after{
                position: absolute;
                left: 100px;
                top: 0;
               
                100px;
                height: 160px;
                content: '';
                border-radius: 50px 50px 0 0;
                transform-origin: 0 100%;
                transform: rotate(-45deg);
            }
            .heart::after{
                transform: rotate(45deg);
                transform-origin: 100% 100%;
                left: 0;
            }
            @keyframes heartAnimation{
                0%{
                    transform: scale(.3);
                }
                20%{
                    transform: scale(.7);
                }
                40%{
                    transform: scale(.9);
                }
                50%{
                    transform: scale(1);
                }
                60%{
                    transform: scale(.9);
                }
                80%{
                    transform: scale(.7);
                }
                100%{
                    transform: scale(.3);
                }
            }
        </style>
    </head>
    <body>
        <div class="heart"></div>
    </body>
  • 相关阅读:
    最大流基础
    转一篇写期望的日志
    poj3267The Cow Lexicon(dp)
    poj3026Borg Maze(bfs+MST)
    poj2226Muddy Fields(二分图的最小点覆盖)
    poj1035Spell checker(字符串模拟)
    poj1422Air Raid(最小路径覆盖)
    poj3020Antenna Placement(最小路径覆盖)
    [JSOI2009]火星藏宝图
    [SHOI2007]书柜的尺寸
  • 原文地址:https://www.cnblogs.com/adialike/p/6401033.html
Copyright © 2011-2022 走看看