Currently, I am facing an issue with a jQuery event that triggers a text-shadow effect:
$(".leftColumn").hover(function (){
$(".leftColumn h2").css("text-shadow", "0px 2px 3px rgba(0, 0, 0, 0.5)");
},function(){});
The problem arises when the text-shadow is applied to the h2 element; it persists even after I stop hovering over leftColumn. How can I make the text shadow disappear?
I attempted the following solution:
$(".leftColumn").hover(function (){
$(".leftColumn h2").css("text-shadow", "0px 2px 3px rgba(0, 0, 0, 0.5)");
},function(){
$(".leftColumn h2").css("text-shadow", "none");
});
Unfortunately, this approach only resulted in preventing the text-shadow from being applied altogether.