🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 3 Min Lesezeit
0

Animating hamburger menu icons

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Hamburger menu icons transforming into a close button are everywhere. Some are animated, some are not. One thing that always disrupts me is when the animation does not make any sense. When one of the three bars get animated away using opacity for example. Where does the bar go?! Welcome to this small rant on hamburger menu icon animations that includes a proper solution in the end.






What's out there?



There's three categories that I divide hamburger menu animations into:






1. No animation





When I see this animation I always think: "Where do the bars go?!"






3. Animations that could be possible in real life





Do you want to play around with it yourself? See the code below!




CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Animated button icon</title>
<style>
:root {
--bar-height: 10px;
--bar-space: 12px;
--transition-duration: 0.3s;
--transition-step-duration: calc(var(--transition-duration) / 2);
}

html,
body {
height: 100%;
margin: 0;
}

body {
display: flex;
align-items: center;
justify-content: center;

background-color: #82a7a6;
}

.button {
position: relative;

display: block;
width: 100px;
height: 100px;
padding: 0;

background-color: transparent;
outline: none;
border: none;

cursor: pointer;
}

.button__bars {
position: absolute;
top: 50%;
left: 50%;

display: block;
width: 74px;
height: var(--bar-height);

background-color: #fff;
border-radius: var(--bar-height);

transform: translate(-50%, -50%);
transition: background 0s var(--transition-step-duration);

&::before,
&::after {
position: absolute;
left: 0;

display: block;
width: 100%;
height: var(--bar-height);

background-color: #fff;
border-radius: var(--bar-height);
content: "";

transition-delay: var(--transition-step-duration), 0s;
transition-duration: var(--transition-step-duration),
var(--transition-step-duration);
}

&::before {
top: calc(-1 * (var(--bar-height) + var(--bar-space)));

transition-property: top, transform;
}

&::after {
bottom: calc(-1 * (var(--bar-height) + var(--bar-space)));

transition-property: bottom, transform;
}
}

.button--open {
.button__bars {
background: none;

&::before,
&::after {
transition-delay: 0s, var(--transition-step-duration);
}

&::before {
top: 0;

transform: rotate(45deg);
}

&::after {
bottom: 0;

transform: rotate(-45deg);
}
}
}
</style>
</head>
<body>
<button id="button" class="button" type="button">
<span class="button__bars"></span>
</button>
<script>
const button = document.getElementById("button");

button.addEventListener("click", () => {
button.classList.toggle("button--open");
});
</script>
</body>
</html>









Conclusion



Do you have more example of animated hamburger icons that do not make sense or that do make sense? Share them via . Feel free to contact me on Twitter with tips, feedback or questions!

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Animating hamburger menu icons

Thematisch verwandte Begriffe: Animating, hamburger, menu, icons · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...