The bi-directional animation is done by using ~ sibling selectors. ps. WebKit only -> uses appearance:none;