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 |
A Pen by wafs | 2,545 Kb |
Website sidebar menu with animation | 2,193 Kb |
Barbara Walters | 2,463 Kb |
Title follows mouseover menu | 1,940 Kb |
Jquery Dynamic background-colours | 4,488 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 |
Scroll using CSS | Casperovic | 2,159 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
Ocean | Gordonnl | 2,817 Kb |
STIKHOI | Denmch | 7,122 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Zeichensatz | Moklick | 2,058 Kb |
Mini Profile | Frytyler | 3,828 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!