Pure CSS lava lamp (Chrome only)
How do I make an pure css lava lamp (chrome only)?
A Lavalamp using just CSS. No JS.Props to @chriscoyer for the basic principle: http://css-tricks.com/shape-blobbing-css/. What is a pure css lava lamp (chrome only)? How do you make a pure css lava lamp (chrome only)? This script and codes were developed by Karsten Buckstegge on 10 September 2022, Saturday.
Pure CSS lava lamp (Chrome only) - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS lava lamp (Chrome only)</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html lang="en">
<body> <div class="wrapper"> <!-- need filter-wrapper to prevent css-filter from bubbling over to .lamp (really?) --> <div class="filter-wrapper"> <section> <div class="bubble"></div> <div class="bubble"></div> <div class="bubble"></div> <div class="bubble"></div> <div class="bubble"></div> <div class="bubble"></div> <div class="bubble"></div> </section> </div> <!-- used no pseudo-elements because filters and opacity thingies get really annoying at that point --> <div class="lamp"></div> <div class="foot"></div> </div>
</body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Pure CSS lava lamp (Chrome only) - Script Codes CSS Codes
body { height: 100%; min-height: 1200px; background: radial-gradient(#3b96d7, #000000) no-repeat; background-size: cover;
}
.wrapper { position: relative; left: 40%; width: 60%; top: 120px;
}
section,
.lamp { width: 300px; height: 600px; -webkit-clip-path: polygon(0px 420px, 0px 411px, 75px 0px, 225px 0px, 300px 411px, 300px 420px, 262.5px 600px, 37.5px 600px);
}
section { position: relative; overflow: hidden; background: #163304; -webkit-filter: contrast(70); filter: contrast(70);
}
.lamp { position: absolute; top: 0; background: radial-gradient(ellipse at bottom, #a3ceff 13%, #005fcf 100%); opacity: 0.43; -webkit-filter: none; filter: none;
}
.foot { position: absolute; left: -37.5px; border-bottom: 150px solid black; border-left: 75px solid transparent; border-right: 75px solid transparent; height: 0; width: 225px;
}
.bubble { background: #6fc639; position: absolute; border-radius: 50%; -webkit-filter: blur(20px); filter: blur(20px);
}
div.bubble:nth-child(0) { height: 106px; width: 261px; -webkit-animation: bubbleMove-0 30s linear infinite;
}
@-webkit-keyframes bubbleMove-0 { 0%, 100% { -webkit-transform: translate3d(68%, 36%, 0px); } 25% { -webkit-transform: translate3d(30%, 11%, 0px); } 50% { -webkit-transform: translate3d(53%, 85%, 0px); } 75% { -webkit-transform: translate3d(75%, 59%, 0px); }
}
div.bubble:nth-child(1) { height: 163px; width: 105px; -webkit-animation: bubbleMove-1 30s linear infinite;
}
@-webkit-keyframes bubbleMove-1 { 0%, 100% { -webkit-transform: translate3d(53%, 26%, 0px); } 25% { -webkit-transform: translate3d(41%, 44%, 0px); } 50% { -webkit-transform: translate3d(76%, 15%, 0px); } 75% { -webkit-transform: translate3d(65%, 23%, 0px); }
}
div.bubble:nth-child(2) { height: 105px; width: 212px; -webkit-animation: bubbleMove-2 30s linear infinite;
}
@-webkit-keyframes bubbleMove-2 { 0%, 100% { -webkit-transform: translate3d(32%, 23%, 0px); } 25% { -webkit-transform: translate3d(55%, 14%, 0px); } 50% { -webkit-transform: translate3d(76%, 47%, 0px); } 75% { -webkit-transform: translate3d(49%, 31%, 0px); }
}
div.bubble:nth-child(3) { height: 334px; width: 111px; -webkit-animation: bubbleMove-3 30s linear infinite;
}
@-webkit-keyframes bubbleMove-3 { 0%, 100% { -webkit-transform: translate3d(54%, 96%, 0px); } 25% { -webkit-transform: translate3d(33%, 29%, 0px); } 50% { -webkit-transform: translate3d(70%, 74%, 0px); } 75% { -webkit-transform: translate3d(28%, 41%, 0px); }
}
div.bubble:nth-child(4) { height: 103px; width: 12px; -webkit-animation: bubbleMove-4 30s linear infinite;
}
@-webkit-keyframes bubbleMove-4 { 0%, 100% { -webkit-transform: translate3d(55%, 18%, 0px); } 25% { -webkit-transform: translate3d(59%, 24%, 0px); } 50% { -webkit-transform: translate3d(67%, 38%, 0px); } 75% { -webkit-transform: translate3d(52%, 22%, 0px); }
}
div.bubble:nth-child(5) { height: 136px; width: 286px; -webkit-animation: bubbleMove-5 30s linear infinite;
}
@-webkit-keyframes bubbleMove-5 { 0%, 100% { -webkit-transform: translate3d(74%, 70%, 0px); } 25% { -webkit-transform: translate3d(37%, 92%, 0px); } 50% { -webkit-transform: translate3d(48%, 56%, 0px); } 75% { -webkit-transform: translate3d(79%, 5%, 0px); }
}
div.bubble:nth-child(6) { height: 259px; width: 166px; -webkit-animation: bubbleMove-6 30s linear infinite;
}
@-webkit-keyframes bubbleMove-6 { 0%, 100% { -webkit-transform: translate3d(66%, 18%, 0px); } 25% { -webkit-transform: translate3d(34%, 14%, 0px); } 50% { -webkit-transform: translate3d(70%, 37%, 0px); } 75% { -webkit-transform: translate3d(34%, 6%, 0px); }
}
div.bubble:nth-child(7) { height: 181px; width: 238px; -webkit-animation: bubbleMove-7 30s linear infinite;
}
@-webkit-keyframes bubbleMove-7 { 0%, 100% { -webkit-transform: translate3d(58%, 82%, 0px); } 25% { -webkit-transform: translate3d(30%, 42%, 0px); } 50% { -webkit-transform: translate3d(70%, 69%, 0px); } 75% { -webkit-transform: translate3d(62%, 89%, 0px); }
}
Pure CSS lava lamp (Chrome only) - Script Codes JS Codes
// no JS
// could add some controls to change color, bubblesize, etc.
Developer | Karsten Buckstegge |
Username | MrBambule |
Uploaded | September 10, 2022 |
Rating | 3 |
Size | 3,862 Kb |
Views | 64,768 |
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 |
Freddy the Fly | 4,238 Kb |
SeXy buttons | 4,447 Kb |
Responsive focuspoint on image with object-position | 3,707 Kb |
A Pen by Karsten Buckstegge | 3,521 Kb |
The wheel of social fortune | 6,570 Kb |
Base64 SVG Me | 44,786 Kb |
Scalable animated css menu button | 2,632 Kb |
The wheel of social | 4,072 Kb |
Even More Brokener TV | 2,571 Kb |
Responsive CSS arrow bar with transparent borders | 2,798 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 |
Ionic Infinite outside ion-content with ion-pane | Felquis | 3,117 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Table Exercise | Fresco | 9,585 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
TinFoil Boats | Chandralil | 4,577 Kb |
Feedback Page | TessDiNapoli | 2,836 Kb |
APortfolio | Skybutterfly | 5,174 Kb |
The Fantastic Mr Fox | MalZiiirA | 10,435 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!