Detect vendor prefixes more sanely.

Previously it would pick the prefixed version for Chrome, even when the unprefixed was available. Also use the transform and not the transition property for testing, since safari still doesn't support unprefixed transform but does support unprefixed transition.
1. No need to put `(event)` in parentheses.
2. We don't use semicolons.