Item menu effect with pseudo-element
How do I make an item menu effect with pseudo-element?
What is a item menu effect with pseudo-element? How do you make a item menu effect with pseudo-element? This script and codes were developed by Twikito on 11 September 2022, Sunday.
Item menu effect with pseudo-element - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Item menu effect with pseudo-element</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav> <a href="#" data-text="Lorem.">Lorem.</a> <a href="#" data-text="Quos.">Quos.</a> <a href="#" data-text="Possimus.">Possimus.</a> <a href="#" data-text="Iusto.">Iusto.</a>
</nav> <script src="js/index.js"></script>
</body>
</html>
Item menu effect with pseudo-element - Script Codes CSS Codes
a { position: relative; display: inline-block; margin: 0 .5em; padding: .5em 1em; overflow: hidden; border: .2em solid white; text-decoration: none; -webkit-transition: border-color .2s ease-out; transition: border-color .2s ease-out;
}
a::before { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: .5em 1em; background: #fff; color: #3498db; -webkit-transform: translateY(-101%); transform: translateY(-101%); content: attr(data-text); -webkit-transition: -webkit-transform .2s ease-out; transition: -webkit-transform .2s ease-out; transition: transform .2s ease-out; transition: transform .2s ease-out, -webkit-transform .2s ease-out;
}
a:hover, a:focus { border-color: white;
}
a:hover::before, a:focus::before { -webkit-transform: translateY(0); transform: translateY(0);
}
/* misc */
html, body { height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; text-align: center; background: #3498db; color: white; font: 1em/1.4 "open sans condensed";
}
nav { margin: auto; font-size: 1.5em; font-weight: 700; text-transform: uppercase;
}
a { color: inherit;
}
Item menu effect with pseudo-element - Script Codes JS Codes
/* NO JS!
*/
Developer | Twikito |
Username | Twikito |
Uploaded | September 11, 2022 |
Rating | 3 |
Size | 2,602 Kb |
Views | 22,264 |
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 |
Input awesome effect on focus with only css | 3,789 Kb |
Beautiful Textual Map of France with CSS | 5,035 Kb |
Pure CSS Slider | 4,664 Kb |
Tooltip with pseudo-element | 2,763 Kb |
CSS-only shadow-scrolling effect | 3,062 Kb |
CSS3 Box Shadows Effects | 2,193 Kb |
Summary with pseudo-element | 2,971 Kb |
Menu item 3D effect on hover with only css | 2,710 Kb |
Full page table inside the grid | 1,864 Kb |
UI with UX improvements with only CSS | 5,668 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 |
Find The Penguin | Lelder | 2,212 Kb |
Svg penguin | _massimo | 2,990 Kb |
CSS Org Chart | Appirio-ux | 3,882 Kb |
Placeholder support for contentEditable elements, without JavaScript | Flesler | 1,863 Kb |
Prototype Responsive Homepage | Heyitsolivia | 7,677 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Three js | Paulq | 2,353 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Sticky Navbar | Phantomesse | 5,106 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!