Home › Forums › JavaScript › Animated Background Vertical orientation › Reply To: Animated Background Vertical orientation
June 10, 2015 at 5:30 pm
#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.