Menu toggle with unicode icons
How do I make an menu toggle with unicode icons?
What is a menu toggle with unicode icons? How do you make a menu toggle with unicode icons? This script and codes were developed by Orion Drummond on 22 August 2022, Monday.
Menu toggle with unicode icons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu toggle with unicode icons</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ menu { font-size: 4rem;
}
input[id=open] ~ menu label { display: inline-block; transition: opacity 0.33s ease-in-out, transform 0.33s ease-in-out;
}
input[id=open] ~ menu label[for=close] { opacity: 0; visibility: hidden; transform: rotateZ(45deg); font-weight: 700;
}
input[id=open]:checked ~ menu label[for=open] { opacity: 0; visibility: hidden; transform: rotateZ(-45deg) scale(1.25); animation: vis-switch 0.3333s;
}
input[id=open]:checked ~ menu label[for=close] { opacity: 1; transform: none; visibility: visible; animation: vis-switch 0.3333s;
}
input[id=close]:checked ~ menu label { opacity: 1; visibility: visible; animation: vis-switch-1 0.3333s;
}
input[id=close]:checked ~ menu label[for=close] { opacity: 0; visibility: hidden; animation: vis-switch-1 0.3333s;
}
menu { position: relative; width: 1em; height: 1em; line-height: 1;
}
menu label { position: absolute;
}
@keyframes vis-switch { 0% { visibility: visible; } 99% { visiblity: visible; }
}
@keyframes vis-switch-1 { 0% { visibility: visible; } 99% { visiblity: visible; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <input type="radio" name="open" id="open">
<input type="radio" name="open" id="close">
<menu> <label for="open">☰</label> <label for="close">✕</label>
</menu>
</body>
</html>
Menu toggle with unicode icons - Script Codes CSS Codes
menu { font-size: 4rem;
}
input[id=open] ~ menu label { display: inline-block; transition: opacity 0.33s ease-in-out, transform 0.33s ease-in-out;
}
input[id=open] ~ menu label[for=close] { opacity: 0; visibility: hidden; transform: rotateZ(45deg); font-weight: 700;
}
input[id=open]:checked ~ menu label[for=open] { opacity: 0; visibility: hidden; transform: rotateZ(-45deg) scale(1.25); animation: vis-switch 0.3333s;
}
input[id=open]:checked ~ menu label[for=close] { opacity: 1; transform: none; visibility: visible; animation: vis-switch 0.3333s;
}
input[id=close]:checked ~ menu label { opacity: 1; visibility: visible; animation: vis-switch-1 0.3333s;
}
input[id=close]:checked ~ menu label[for=close] { opacity: 0; visibility: hidden; animation: vis-switch-1 0.3333s;
}
menu { position: relative; width: 1em; height: 1em; line-height: 1;
}
menu label { position: absolute;
}
@keyframes vis-switch { 0% { visibility: visible; } 99% { visiblity: visible; }
}
@keyframes vis-switch-1 { 0% { visibility: visible; } 99% { visiblity: visible; }
}
Developer | Orion Drummond |
Username | tappily |
Uploaded | August 22, 2022 |
Rating | 3 |
Size | 2,730 Kb |
Views | 36,432 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Can define | 1,995 Kb |
Neon wallpaper | 2,635 Kb |
Google Web Font LESS Mixin | 2,492 Kb |
3d stacked preview | 3,760 Kb |
CSS Prompt | 5,639 Kb |
Reading Grid | 4,306 Kb |
Studded wallpaper | 2,252 Kb |
Flex scrolling tbody | 3,112 Kb |
Responsive Background Image Loading | 2,071 Kb |
A Pen by Orion Drummond | 3,309 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
SVG Animation | Pollardld | 3,133 Kb |
Webkit decolorize | Fivera | 1,675 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
P5.js data visualization | Enginarslan | 2,233 Kb |
Scroll using CSS | Casperovic | 2,159 Kb |
CMP5-Opdracht15 | SannevanGastel | 2,733 Kb |
Factorial | KeithleySLHS | 1,158 Kb |
Knob rotation | Alemesre | 2,122 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!