Simple Animation with Show Hide

Looks pretty intense - difficult to read and to follow the timing logic.
Consider using setTimeout() Method and maybe setInterval() .