Why transition is not working in Safari browser?