chore(docs): refactor/improve new CSS transition code in examples