Change reveal from JS transition to CSS transition