I need to make hover
on the div with class="item"
the image make the transition
that is set.
As I have it, the image only "transforms" if I do hover in it but not if I do it in the div.
I've seen this other question: Add style to an element when hovering the parent element , but it has not helped me.
.img_block .noticias_imagen {
display: block;
width: 100%;
height: auto;
transition: transform 0.4s;
}
.img_block:hover .noticias_imagen {
transform: rotate(25deg) scale(1.5);
}
<div class="item">
<div class="img_block img_blockG">
<img class="noticias_imagen" src="http://segurosbaratos.motorgiga.com/uploads/comparador_seguros_de_coche.jpg" alt="">
</div>
<div class="carousel_body">
<div class="team_title">
<h6>{{ noticia.titulo }}</h6>
</div>
<div class="team_desc">{{ noticia.desc|raw }}</div>
<div class="team_icons_wrapper"><a class="btn btn-default" role="button" href="{{ noticia.link }}" target="_blank">{{ "Sigue.leyendo"|trans }} »</a></div>
</div>
</div>