Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Music Equalizer Effect Reply To: Music Equalizer Effect

#196715
Shikkediel
Participant

How about this?

http://jsfiddle.net/RHCqQ/43/

The animate method is synchronous so there’s no need to use the callback functions. Only with the last animation – to loop to the start again. Looking at it, I think you wanna make sure the random subtraction doesn’t make the element ‘disappear’. But that’s another subject. It would probably not be too difficult to do with CSS either (but I am admittedly more into this stuff). I could also imagine some other tweaks, like using an array for the values so not all the parameters have to be passed through the move function.

http://jsfiddle.net/RHCqQ/44/

Post was obviously edited…