<div class="scale"></div> <input type="text" name="" id=""> <style> .scale { width: 100px; height: 100px; background: #DDD; animation: ani 1s infinite; } input { width: 400px; height: 20px; background: #13e; margin-top: 137px; } @keyframes ani { 0% { transform: scale(2); } 100% { transform: scale(3); } } </style> <script> setTimeout(function () { while(true){ console.log("hello world"); } }, 3000) </script>
|