Menu item 3D effect on hover with only css
How do I make an menu item 3d effect on hover with only css?
What is a menu item 3d effect on hover with only css? How do you make a menu item 3d effect on hover with only css? This script and codes were developed by Twikito on 11 September 2022, Sunday.
Menu item 3D effect on hover with only css - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu item 3D effect on hover with only css</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=Droid+Serif'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav> <a href="#" data-text="Lorem"> <span>Lorem</span> </a> <a href="#" data-text="Quos"> <span>Quos</span> </a> <a href="#" data-text="Quid"> <span>Quid</span> </a> <a href="#" data-text="Mollitia"> <span>Mollitia</span> </a>
</nav>
</body>
</html>
Menu item 3D effect on hover with only css - Script Codes CSS Codes
body { -webkit-perspective: 800px; perspective: 800px;
}
a { position: relative; display: inline-block; margin: 0 1em; padding: 0; border: none; outline: none; background: none; text-decoration: none; text-align: center; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -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 span, a::before, a::after { display: block; color: #3498db; font: 1.5em/2 "droid serif"; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
a span { padding: 0 1em; background: white; -webkit-transform: translateZ(1em); transform: translateZ(1em);
}
a::before, a::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}
a::before { content: attr(data-text); padding: 0 1em; background: #124364; color: white; -webkit-transform: rotateX(-90deg) translateZ(1em); transform: rotateX(-90deg) translateZ(1em);
}
a::after { width: 2em; left: initial; content: ''; background: #1d6fa5; -webkit-transform: rotateY(90deg) translateZ(1em); transform: rotateY(90deg) translateZ(1em);
}
a:nth-child(n+3)::after { left: 0; right: initial; -webkit-transform: rotateY(-90deg) translateZ(1em); transform: rotateY(-90deg) translateZ(1em);
}
a:hover, a:focus { -webkit-transform: rotateX(90deg); transform: rotateX(90deg);
}
/* misc */
html, body { height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; background: #3498db;
}
nav { margin: auto; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row nowrap; flex-flow: row nowrap;
}
Developer | Twikito |
Username | Twikito |
Uploaded | September 11, 2022 |
Rating | 3 |
Size | 2,710 Kb |
Views | 28,336 |
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 |
Beautiful Textual Map of French towns with CSS | 6,387 Kb |
Input focus effect with only CSS | 4,411 Kb |
Full page table inside the grid | 1,864 Kb |
Beautiful Textual Map of France with CSS | 5,035 Kb |
LavaLamp effect with CSS | 2,720 Kb |
Realistics radio buttons with only css | 3,376 Kb |
Image with hover CSS3 effect and full overlay | 2,724 Kb |
UI with UX improvements with only CSS | 5,668 Kb |
Easy CSS3 checkboxes and radio buttons | 2,742 Kb |
CSS-only shadow-scrolling effect | 3,062 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 |
Nice textured background | Hans | 2,659 Kb |
Electric worm | Jeffibacache | 2,377 Kb |
Amazing CSS Menu with Notification Badges | Faizanasad | 2,549 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Image Hover | Johnheiner | 3,409 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Resize image | Happyhj | 1,892 Kb |
Weather App | OmranAbazid | 2,596 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
A Pen by Alex Bergin | Abergin | 3,347 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!