Rewriting animate directive + unit tests
Move resources to a separate folder