Consolidate css animation lines