I am creating a Login Popup on a Website. I just noticed that when opening the popup with Safari multiple times (opening and closing it) the animation will only show when the modal is opened for the first time after a page load. In Chrome everything is working perfectly fine and the animation is displayed every time. I simplified the issue in this codepen, where the problem is also apparent. https://codepen.io/bvonr/pen/BaZVxxK Whats the reason for this behaviour. How can I fix this problem, so that the animation shows all the time not only in Chrome but also in Safari? I assume the problem is within these lines of my CSS.
.animate {
animation: zoom 0.6s
}
@keyframes zoom {
from {transform: scale(0)}
to {transform: scale(1)}
}