Home › Forums › JavaScript › show/hide › Reply To: show/hide
May 16, 2016 at 7:24 pm
#241769
Participant
Here’s the parallax effect and optimised randomisation (using most of the script of the other pen) :
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…