styling through element and not wrapper for CSS transitions