I'm currently working on implementing effects on the edges of a webpage that will be triggered when a central div is hovered over. The main tool I'm using for this task is jQuery.
Despite my efforts to diagnose the issue by using alerts in my JavaScript code, I'm still unable to pinpoint why the code is not functioning as expected.
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2'></script>
<script>
$( "#shadow" ).hover(
function() {
$( "#wingRight" ).addClass( "shown" );
}, function() {
$( "#wingRight" ).removeClass( "shown" );
}
);
$( "#light" ).hover(
function() {
$( "#wingLeft" ).addClass( "shown" );
}, function() {
$( "#wingLeft" ).removeClass( "shown" );
}
);
</script>
Here is the link to my current code on CodePen
Thank you for your help!