feature: some optimizations for css transition