😃
😂
😍
😎
🤩
🥳
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fun Emoji Cube Game</title>
<style>
@keyframes rotation {
0% { transform: rotateX(0deg) rotateY(0deg); }
100% { transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes buttonClick {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}
</style>
</head>
<body>
<div style="width: 400px; height: 400px; position: relative; perspective: 800px; margin: 0 auto;">
<div id="cube" style="width: 100%; height: 100%; transform-style: preserve-3d; animation: rotation 10s infinite linear;">
<div style="position: absolute; width: 100%; height: 100%; background: lightblue; transform: translateZ(200px); display: flex; align-items: center; justify-content: center; font-size: 4em;">😃</div>
<div style="position: absolute; width: 100%; height: 100%; background: lightcoral; transform: rotateY(90deg) translateZ(200px); display: flex; align-items: center; justify-content: center; font-size: 4em;">😂</div>
<div style="position: absolute; width: 100%; height: 100%; background: lightgreen; transform: rotateY(180deg) translateZ(200px); display: flex; align-items: center; justify-content: center; font-size: 4em;">😍</div>
<div style="position: absolute; width: 100%; height: 100%; background: lightyellow; transform: rotateY(-90deg) translateZ(200px); display: flex; align-items: center; justify-content: center; font-size: 4em;">😎</div>
<div style="position: absolute; width: 100%; height: 100%; background: lightsalmon; transform: rotateX(90deg) translateZ(200px); display: flex; align-items: center; justify-content: center; font-size: 4em;">🤩</div>
<div style="position: absolute; width: 100%; height: 100%; background: lightpink; transform: rotateX(-90deg) translateZ(200px); display: flex; align-items: center; justify-content: center; font-size: 4em;">🥳</div>
</div>
</div>
<div style="max-width: 400px; margin: 20px auto; display: flex; justify-content: space-around;">
<input type="button" value="⬅️" style="font-size: 2em; padding: 10px; border-radius: 10px;" onclick="rotateCubeY(-1)">
<input type="button" value="⬆️" style="font-size: 2em; padding: 10px; border-radius: 10px;" onclick="rotateCubeX(1)">
<input type="button" value="⬇️" style="font-size: 2em; padding: 10px; border-radius: 10px;" onclick="rotateCubeX(-1)">
<input type="button" value="➡️" style="font-size: 2em; padding: 10px; border-radius: 10px;" onclick="rotateCubeY(1)">
</div>
<script>
let rotX = 0;
let rotY = 0;
function rotateCubeX(direction) {
rotX += direction * 90;
document.getElementById('cube').style.transform = `rotateX(${rotX}deg) rotateY(${rotY}deg)`;
animateButtonClick();
}
function rotateCubeY(direction) {
rotY += direction * 90;
document.getElementById('cube').style.transform = `rotateX(${rotX}deg) rotateY(${rotY}deg)`;
animateButtonClick();
}
function animateButtonClick() {
const buttons = document.querySelectorAll('input[type="button"]');
buttons.forEach(button => {
button.style.animation = 'buttonClick 0.3s';
button.addEventListener('animationend', () => {
button.style.animation = '';
});
});
}
</script>
</body>
</html>
```