Can you change the show/hide within an .js (aurelia) of an image based on a the user hovering over an href? I think I need to add something to the Bind() or Activate().
Something like:
activate(){
$( "a" ).hover(
///find non rollover image and hide
///find rollover image and show
);
//else
///find non rollover image and show
///find rollover image and hide
}
I don't actually know where to begin :-/, any help would be great :-)
<div class="row">
<div class="col-sm-6">
<a target="blank" href.bind="baseContent.LinkDestination">
<img class="header-splash" src.bind="baseContent.SplashImage" class="image-block-file-image" />
<img class="header-splash-hover" src.bind="baseContent.SplashHoverImage" class="image-block-file-image" />
</a>
</div>
</div>