.floating { animation: floating 6s ease-in-out infinite } @keyframes floating { 0% { transform: translateY(0); } 50% { transform: translateY(-16px); } 100% { transform: translateY(0); } }