I'm trying to call the zoom in effect on hover on title but it's working only on the image.
.image {
position: relative;
overflow: hidden;
width: 100px;
}
.image img {
max-width: 100%;
-moz-transition: all 0.3s;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.image:hover img, .title-header:hover .image img{
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
<div>
<a href="#">
<div class="image">
<img src="pepsi.jpg">
</div>
</a>
</div>
<div class="title">
<div class="title-header">
<a href="#"><h4>Title Here</h4></a>
</div>
</div>
I want to be able to zoom in on the image when I hover over the text too. How can I achieve this?