The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have this function, and I want to know how to use a different one every time a user comes to the page. For instance choose random transition values like slidein, slidedown, slideup, etc.
Same way with a color element:
Get a random value for those. Do I have to create an array and have it select a random value? I’m not sure of the exact syntax on that
var transitions = [
var randomTransition = transitions[Math.floor(Math.random() * transitions.length)];