Set default value before css transitions to fix firefox