use css animations
Support transitioning display state