CSS Animation Fill Mode: Apply Styles Before and After Your Animations - Position Is Everything
animation-fill-mode explained
Day 22: Using container transform pattern to animate the appearance of a search box | by MasaKudamatsu | 100 Days in Kyoto to Create a Web App with Google Maps API | Medium