Fix for the Firefox

Fixed transitions so that they're Firefox friendly