rewrite to not be rewrite of animation framework in jquery.