+ 2
A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().
function name() {
// code to be executed
}
+ 1
Have a look at the CSS animation properties
https://www.w3schools.com/css/css3_animations.asp
+ 1
…
0
Why do you keep renaming your variables?
0
What do you want the transition to do?
0
randRed + "s"; is not a proper transition value