Faux 3d hover blocks in CSS
How do I make an faux 3d hover blocks in css?
Mousing over the items just resizes the width of the boxes they're in, including the :after box. Also, I've animated the text-shadow propery, moving and bluring it on hover to give it more of a 3d sense. What is a faux 3d hover blocks in css? How do you make a faux 3d hover blocks in css? This script and codes were developed by Wafs on 12 September 2022, Monday.
Faux 3d hover blocks in CSS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Faux 3d hover blocks in CSS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="wrapper"> <div id="box1" class="box"><span>one</span></div> <div id="box1" class="box"><span>two</span></div> <div id="box1" class="box"><span>three</span></div> <div id="box1" class="box"><span>four</span></div>
</div>
</body>
</html>
Faux 3d hover blocks in CSS - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,900,300);
*
{ -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out;
}
#wrapper
{
position: absolute; left:5%; top:40px;
}
.box
{ width: 200px; height: 50px; background: red;
}
.box:before
{ content:""; position: absolute; width: 50px; height: 50px; background-color: rgba(0,0,0,.2); -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out;
}
div span
{ position: relative; top:5px; left: 110px; font-family:Roboto, sans-serif; font-size: 1.2em; font-weight:400; text-transform:uppercase; color:white; text-shadow: 0px 0px 0px #000, -3px 2px 2px #000;
}
.box:hover
{ width: 150px; background: #D00;
}
.box:hover > span
{ text-shadow: 0px 0px 2px #000,-60px 4px 9px #000; left: 100px;
}
.box:hover:before
{ width:10px;
}
Developer | Wafs |
Username | wafs |
Uploaded | September 12, 2022 |
Rating | 3 |
Size | 1,894 Kb |
Views | 24,288 |
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 |
Website sidebar menu with animation | 2,193 Kb |
Barbara Walters | 2,463 Kb |
Faux 3d hover blocks in CSS | 1,894 Kb |
Jquery Dynamic background-colours | 4,488 Kb |
Title follows mouseover menu | 1,940 Kb |
A Pen by wafs | 2,545 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 |
Medium Menu | Lucasmotta | 3,923 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
A Pen by Alexandru Pora | Axpro | 1,615 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Bubble animation | Ftabor | 6,565 Kb |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Hexagons | Ashmind | 4,360 Kb |
Kudos Please | TimPietrusky | 6,624 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!