The transition-duration CSS property defines the length of time a transition takes.
object.style.transitionDuration = "value";
<'transition-duration'> = <time>#
Defines how long of a delay there is between the start of the animation and when it begins executing.
Milliseconds. There are 1000 milliseconds in 1 second.