How to set transition?

transition
Is it possible to make so that would effect the smoothness to be applied only in the case when we attach mouse from the element?

At the moment, the smoothness works when mouse over and when its withdrawal.
.content .item a:hover .item-inner h4 {
opacity:1;
filter:alpha(opacity=100);
 }


.content .item .item-inner h4 {
opacity:0.0;
filter:alpha(opacity=0);
 transition: 0.5 s linear; 
}
July 8th 19 at 16:32
1 answer
July 8th 19 at 16:34
Solution
.content .item a:hover .item-inner h4 {
opacity:1;
filter:alpha(opacity=100);
 transition: 0s; /*or none*/
}


.content .item .item-inner h4 {
opacity:0.0;
filter:alpha(opacity=0);
 transition: 0.5 s linear; 
}

Find more questions by tags CSSHTML