fix(modal): Fix modal animation for firefox, closes #671