better support for css animation/transition