Forums

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

Home Forums JavaScript show/hide Reply To: show/hide

#241769
Shikkediel
Participant

Here’s the parallax effect and optimised randomisation (using most of the script of the other pen) :

Demo

I added some background to see the effect better. The ratios for widget displacement caused by the parallax calculation aren’t automated and will have to be manually altered :

var ratio = [-0.05,0,0,0]

A negative number will send it towards to top, positive towards the bottom. Keeping the order of the HTML, separated by a comma.

Still some tweaking to be done as usual, I see…