add support for CSS animations + refactor model (need a real API)