Animations via javascript

Hi, I'm trying to make some very basic A-RPG plugin, and I would like to know how to play an animation on an event via Javascript.
You mean like the animations under the Animations tab?

$gameMap.event(1).requestAnimation(1)
My question, as an addendum, is: If I use that request animation call, can I build an animation outside of MV via javascript and import the animation? Like, for instance an animated title screen?
I had to google "addendum". What does the Javascript animation look like in code?
CODE.png


i screenshotted CodeAcademy for this snippet, because I couldn't copy it.
I don't know a whole lot but I think you can do stuff like that. If not you can probably make something to make it do that.
You mean like the animations under the Animations tab?

$gameMap.event(1).requestAnimation(1)
Yep. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/animations-via-javascript.52831/