Fix performance issue

Single write to css stylesheet instead of one per animation