Dropsofwater
3 months ago in HTML
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: transparent;
}
.container {
display: flex;
gap: 10px;
}
.drop-button {
width: 50px;
height: 50px;
background-color: transparent;
border: 2px solid #e0e0e0;
border-radius: 50%;
cursor: pointer;
transition: background-color 0.3s, border-color 0.3s;
}
.drop-button.active {
background-color: #00aaff;
border-color: #00aaff;
}
</style>
</head>
<body>
<div class="container">
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
<button class="drop-button" onclick="toggleDrop(this)"></button>
</div>
<script>
function toggleDrop(button) {
button.classList.toggle('active');
}
</script>
</body>
</html>