Forums

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

Home Forums JavaScript Animated Background Vertical orientation Reply To: Animated Background Vertical orientation

#203557
nkrisc
Participant

Just change the CSS rule it’s adding

"-webkit-gradient(linear, left top, right top, from("+color1+"), to("+color2+"))"

To this:

"-webkit-gradient(linear, left bottom, left top, from("+color1+"), to("+color2+"))"

This runs it from bottom to top. Just reverse the start/end parameters to go from top to bottom.

Don’t forget to do the same for the Mozilla prefixed rule -moz as well. I’m on Chrome right now so I’ll leave looking that syntax up to you.