@layer components { .fade-in { @apply opacity-0 animate-[fadeIn_0.5s_ease-out_forwards]; } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }