add new animation style + refactoring js