Prova de animacions

In this example below you will see how to do a Prova de animacions with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by Ferran, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Ferran ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Prova de animacions</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="prueba">
  bablblblablbllblbalba
  lbalblbalblb
  lbalblalbalb
  llblbalba
  lbalblbalblb
  lbalblalbalbllblbalba
  lbalblbalblb
  lbalblalbalblblbalba
  lbalblbalblb
  lbalblalbalbllblbalba
  lbalblbalblb
  lbalblalbalblblbalba
  lbalblbalblb
  lbalblalbalbllblbalba
  lbalblbalblb
  lbalblalbalblblbalba
  lbalblbalblb
  lbalblalbalbllblbalba
  lbalblbalblb
  lbalblalbalb
  
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/Ferran/prova-de-animacions-AaIuk */
.prueba {
  width: 300px; 
  max-height: 50px; 
  background-color: olive; 
  transition: all 2s ease-in;
}

.prueba:hover {
 width: 600px;
 max-height: 3000px;
  background-color: blue;
}

Comments