I am currently designing a pricing table with hover effects. You can view the progress here:
Upon hovering on a pricing table, all the divs are toggling classes which is not the desired behavior. I want each element to have its own separate interaction.
Here is the jQuery code I have implemented:
$('.package').hover(function(){
$('.name').toggleClass('name-hover')
$('.price-container').toggleClass('price-hover')
$('.price').toggleClass('white-hover')
$('.month').toggleClass('white-hover')
});
The CSS adjustments are just to modify the current colors:
.package .price-hover {
background: #008ed6;
}
.package .white-hover {
color: #fff;
}
I have attempted using $(this), but it does not produce the desired effect.