3
I’d like to move the label
by hovering the mouse over the image
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>WOOOW</title>
<style media="screen">
img{
width:100px;
height: 100px;
transition: width 2s, height 2s;
}
img:hover{
width: 200px;
height: 200px;
}
label{
margin-bottom: 0px;
transition: margin-bottom 2s;
}
img:hover > label{
margin-bottom: 60px;
}
</style>
</head>
<body>
<h1>Titulo</h1>
<hr>
<div class="container">
<h2>Item 1</h2>
<img src="http://via.placeholder.com/200x200" alt="">
<label>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, quaerat!</label>
</img>
</div>
<div>
<h2>Item 2</h2>
<img src="http://via.placeholder.com/200x200" alt="">
<label>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, quaerat!</label>
</div>
<div>
<h2>Item 3</h2>
<img src="http://via.placeholder.com/200x200" alt="">
<label>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, quaerat!</label>
</div>
<div>
<h2>Item 4</h2>
<img src="http://via.placeholder.com/200x200" alt="">
<label for="">Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, quaerat!</label>
</div>
</body>
</html>
Take a look https://answall.com/questions/239722/howfunction-cada-valor-que-pode-ser-usado-no-attribute transition-transition/240057#240057. Speak if you have questions
– DiegoSantos
With CSS3 or Javascript (jQuery)??
– LeAndrade
Only with CSS3
– GT Scripts