@keyframes fadein { from { opacity: 0; } to { opacity: 1; } } .fadein { opacity: 0; animation: fadein 1s ease-in-out forwards; }