Check for animation styles on close.

Don't wait for animation end just because the browser supports
animation styles. If no animation styles are defined for vex
closing class despite the browser supporting them, the modal will
be kept open.

Therefore, only wait for animation end when the browser supports
animation styles and the `$vex` element uses them.