duration
number
The animation duration in seconds (defaults to 0.15 if not specified)
return
type
Optional return value from the commands block
commands
commands
The commands block containing style changes to animate
return
void
A promise that resolves when the animation completes