LAMP PURE CSS with Animation
How do I make an lamp pure css with animation?
What is a lamp pure css with animation? How do you make a lamp pure css with animation? This script and codes were developed by Damien Flandrin on 12 June 2022, Sunday.
LAMP PURE CSS with Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>LAMP PURE CSS with Animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="lamp"> <div class="cable"></div> <div class="cover"></div> <div class="in-cover"> <div class="bulb"></div> </div> <div class="light"></div>
</div>
<div class="copyright"> <a href="https://www.damienflandrin.fr" target="blank">A pen by Damien Flandrin</a>
</div>
</body>
</html>
LAMP PURE CSS with Animation - Script Codes CSS Codes
html, body { height: 100%;
}
body { background: #333; overflow: hidden; position: relative;
}
a { color: #333; text-decoration: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; margin: 0px auto; font-family: Helvetica, Arial, Sans-Serif; text-transform: uppercase; font-weight: bold;
}
.lamp { position: absolute; left: 0px; right: 0px; top: 0px; margin: 0px auto; width: 300px; display: flex; flex-direction: column; align-items: center; transform-origin: center top; animation-timing-function: cubic-bezier(0.6, 0, 0.38, 1); animation: move 5s infinite; /* IE 10+, Fx 29+ */
}
@keyframes move { 0% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } 100% { transform: rotate(-30deg); }
}
.cable { width: 4px; height: 200px; background: white;
}
.cover { width: 200px; height: 80px; background: #EEEEEE; border-top-left-radius: 50%; border-top-right-radius: 50%; position: relative; z-index: 200;
}
.in-cover { width: 100%; max-width: 200px; height: 20px; border-radius: 100%; background: #AAA; position: absolute; left: 0px; right: 0px; margin: 0px auto; bottom: -9px; z-index: 100;
}
.in-cover .bulb { width: 50px; height: 50px; background: #F5D76E; border-radius: 50%; position: absolute; left: 0px; right: 0px; bottom: -20px; margin: 0px auto;
}
.light { width: 200px; height: 0px; border-bottom: 900px solid rgba(100, 100, 100, 0.2); border-left: 50px solid transparent; border-right: 50px solid transparent; position: absolute; left: 0px; right: 0px; top: 270px; margin: 0px auto; z-index: 1;
}
.copyright { width: 100%; height: 100%; text-align: center; position: relative;
}
Developer | Damien Flandrin |
Username | dam62500 |
Uploaded | June 12, 2022 |
Rating | 4 |
Size | 2,911 Kb |
Views | 433,136 |
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 |
Make a grid with Neat 2.0 | 5,522 Kb |
Description list inline | 1,741 Kb |
Card UI CSS | 2,897 Kb |
Menu responsive avec Flexbox - 2 | 3,955 Kb |
Menu responsive avec Flexbox - 1 | 2,667 Kb |
A Pen by Damien Flandrin | 3,438 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 |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Blockquote design | Sjmcpherson | 1,863 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Canvas stripes | Adrianparr | 1,948 Kb |
Svg sky | Omodev | 7,070 Kb |
A Pen by Dalton Liu | Liudalton | 12,437 Kb |
STIKHOI | Denmch | 7,122 Kb |
Pure CSS albums gallery | Renaudtertrais | 2,978 Kb |
P1 | Vivi_Lai | 1,533 Kb |
Hc first draft | Stepfray | 5,104 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!