Fade out battler while sliding when escaping

Good day everyone!

Is there a way that when escape is successful, while the sideview battlers are sliding out of the battle, the battlers will fade out or their opacity will decrease as they slide? So far I only know how to edit the distance and the speed of their slide.
Good day indeed o/

I couldn't find a way to do it via events or a script call, but I did manage to make a tiny plugin out of it, if that's okay. It's attached to this post.
(As with any plugin, simply put the file in your js -> plugins folder, and add it to your plugin list)

No credit needed, feel free to use at your leisure if it works for you.
I haven't tested it in EVERY possible situation, nor have I tested it with other plugins, so let me know if you find any issues.
Thank you for this plugin and answer @PlzBeQuiet.

First though I want to test what if I create a sprite animation that has many same frames but each frames have reduced opacity until the last frame is zero opacity (I hope I explained it right, excuse my grammar).

If this did not work, I will definitely try yours. Thank you again!

Original thread: https://forums.rpgmakerweb.com/threads/fade-out-battler-while-sliding-when-escaping.153389/