jueves, 4 de enero de 2024

Cuadrado gira por html programacion simple

<!DOCTYPE html>
<html>
<head>
  <title>Cuadrado girando continuamente</title>
  <style>
    .square {
      width: 100px;
      height: 100px;
      background-color: red;
      position: relative;
      animation: rotate 2s infinite linear;
    }
    @keyframes rotate {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
  </style>
</head>
<body>
  <div class="square"></div>
</body>
</html>

Cuadrado girando continuamente

No hay comentarios:

Publicar un comentario