Floating element with shadow
How do I make an floating element with shadow?
What is a floating element with shadow? How do you make a floating element with shadow? This script and codes were developed by Susanne Karin Lundblad on 13 September 2022, Tuesday.
Floating element with shadow - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Floating element with shadow</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="background"> <div class="test"> <div class="box"></div> <div class="shadow"> </div> </div>
</div>
</body>
</html>
Floating element with shadow - Script Codes CSS Codes
.background { width: 100%; height: 100%; background-color: #ecf0f1; position: fixed; top: 0; left: 0;
}
@keyframes shadow { 50% { opacity: 1; transform: scaleX(1) translateY(-1px); }
}
@-webkit-keyframes shadow { 50% { opacity: 1; -webkit-transform: scaleX(1) translateY(-1px); }
}
@keyframes bounce-long { 50% { transform: translateY(7px); }
}
@-webkit-keyframes bounce-long { 50% { -webkit-transform: translateY(7px); }
}
.test { top: 50%; left: 50%; position: relative; width: 100px; height: 100px; margin-top: -50px; margin-left: -50px;
}
.box { width: 100%; height: 100%; background-color: #3498db; position: absolute; transform: translateZ(20); -webkit-transform: translateZ(20); -webkit-backface-visibility: hidden; -webkit-perspective: 1000; animation: bounce-long 3s ease-in-out 2s infinite; -webkit-animation: bounce-long 3s ease-in-out 2s infinite;
}
.shadow { width: 94%; height: 3px; display: block; background-color:#34495e; position: absolute; bottom: -25px; left: 2%; opacity: 0.5; transform: scaleX(0.85) translateY(-1px); -webkit-transform: scaleX(0.85) translateY(-1px); -webkit-backface-visibility: hidden; -webkit-perspective: 1000; animation: shadow 3s ease-in-out 2s infinite; -webkit-animation: shadow 3s ease-in-out 2s infinite;
}
Developer | Susanne Karin Lundblad |
Username | SusanneLundblad |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 1,783 Kb |
Views | 38,456 |
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 |
Wake animation | 4,322 Kb |
Loading animation | 2,383 Kb |
Hover-effect | 3,241 Kb |
Button shaking | 2,227 Kb |
Css man | 3,712 Kb |
CSS-masking gallery | 2,567 Kb |
A Pen by Susanne Karin Lundblad | 2,320 Kb |
Blend mode of text | 2,269 Kb |
AngularJS, submitting from input pushing enter | 2,219 Kb |
Flying pinata | 3,560 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 |
Scifi-style Interative Form | Aaronchuo | 4,566 Kb |
Pink expansion tunnel | Vez | 1,738 Kb |
CSS3 Fullscreen Background Slideshow | Leetech | 3,435 Kb |
React Template | Isac | 1,241 Kb |
Off Canvas | Mariamarica | 1,870 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
My three.js practice | Esambino | 3,203 Kb |
Price table | Serluk | 5,928 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
Nested table email layout | Massimo-cassandro | 2,355 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!