请老师检查下作业~

来源:2-21 自由编程

慕盖茨1446079

2022-04-12 12:18:25

<style>

        *{

            margin: 0;

            padding: 0;

        }

        .xin,.xin1{

            width: 88px;

            height: 81px;

            background: url(images/xin.png) no-repeat;

        }

        .xin{

            margin: 50px auto;

            position: relative;

        }

        .xin1{

            position: absolute;

            left: 0;

            top: 0;

            animation: r1 .5s linear 0s infinite;

        }

        @keyframes r1{

            from{

                opacity: 1;

            }

            to{

                transform: scale(2);

                opacity: 0;

            }

        }

    </style>

    <div class="xin">

        <div class="xin1"></div>

    </div>


写回答

1回答

好帮手慕星星

2022-04-12

同学你好,代码实现效果很棒。继续加油,祝学习愉快!

0

前端工程师

前端入门如同写字,如果你不知道从哪开始,那就选择前端(含Vue3.x,React17,TS)

20327 学习 · 17877 问题

查看课程