Skip to main content
jakobd25112312
Participant
Mar 8, 2020 3:36 PM UTC
Question

hover effect sound

Hello folks,

I'd like to have one special effect on my website, and I wonder if one of you could help me out with it, I am struggling a bit:

I created some hotspots on my page and I want to have a mouse-over sound effect on it, like if you touch it with the cursor, there is a little short sound of a snaredrum or whatever.

I thought I could do it with a behavior tag, but there are only visual effects available.

Do you know how to do it?

 

Thanks!

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

thatsmauri
Community Expert
Community Expert
Mar 8, 2020 4:04 PM UTC

It is possible, but requires some custom JavaScript code - here's how it's done:
https://css-tricks.com/play-sound-on-hover/

Translate