martes, 24 de febrero de 2026

shake img 10mo. A Sistemas

 https://www.w3schools.com/howto/howto_css_shake_image.asp


<!DOCTYPE html>

<html lang="es">

<head>

<title>Imágenes</title>

<style>

img:hover {

  /* Start the shake animation and make the animation last for 0.5 seconds */

  animation: shake 0.5s;

  /* When the animation is finished, start again */

  animation-iteration-count: infinite;

}

@keyframes shake {

  0% { transform: translate(1px, 1px) rotate(0deg); }

  10% { transform: translate(-1px, -2px) rotate(-1deg); }

  20% { transform: translate(-3px, 0px) rotate(1deg); }

  30% { transform: translate(3px, 2px) rotate(0deg); }

  40% { transform: translate(1px, -1px) rotate(1deg); }

  50% { transform: translate(-1px, 2px) rotate(-1deg); }

  60% { transform: translate(-3px, 1px) rotate(0deg); }

  70% { transform: translate(3px, 1px) rotate(-1deg); }

  80% { transform: translate(-1px, -1px) rotate(1deg); }

  90% { transform: translate(1px, 2px) rotate(0deg); }

  100% { transform: translate(1px, -2px) rotate(-1deg); }

}

</style>

</head>

<body>

<img src="ilustraciones/1.jpg" alt="" style="border-radius: 5%;" width="25%">

<img src="ilustraciones/1.jpg" alt="" style="border-radius: 20%;" width="25%">

<img src="ilustraciones/1.jpg" alt="" style="border-radius: 30%;" width="25%">

<img src="ilustraciones/1.jpg" alt="" style="border-radius: 40%;" width="25%">

<img src="ilustraciones/1.jpg" alt="" style="border-radius: 50%;" width="25%">

</body>

</html>

No hay comentarios:

Publicar un comentario

Reparación - 11mo. A