Using Bootstrap framework with Wordpress site
.test {
position: absolute;
z-index: 9;
left: 50%;
height: 10em;
width: 10em;
margin-left: -5em;
background-size: cover;
opacity: 0;
transition: opacity 0.5s ease;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
}
.linkage:hover + .test {
opacity: 1;
}
<div class="row">
<div class="col-md-12 indx-img" style="background-image:url('...');">
<a href="<?php the_permalink(); ?>" class="linkage">Link</a>
<div class="test"> Test </div>
</div>
</div>
Currently, when hovering over the 'linkage' link, the 'test' div appears vertically and horizontally centered with opacity 1.
I am looking to add an animation effect to the 'test' div as it fades in on hover. One idea is to use scale transformation where the div scales down to its original size on hover, then scales up on fade out. Suggestions for cooler effects are welcome!