This is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta…
- User
This is my code:
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-color: #f0f0f0;}
.icon-container { display: flex; gap: 20px; }
.icon { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, background-color 0.3s ease; cursor: pointer; }
.icon i { font-size: 2rem; color: #333; transition: color 0.3s ease; }
.icon:hover { transform: translateY(-10px); background-color: #e0e0e0; }
.icon:hover i { color: #007BFF; }
<script> document.querySelectorAll('.icon').forEach(icon => { icon.addEventListener('mouseenter', () => { // Add custom logic for when mouse enters console.log('Mouse entered:', icon.id); }); icon.addEventListener('mouseleave', () => { // Add custom logic for when mouse leaves console.log('Mouse left:', icon.id); });});
Need to Improve below mentioned:
add another 3 icons to it
- Assistant