Cartoon Bomb

Developer
Size
4,929 Kb
Views
42,504

How do I make an cartoon bomb?

My original plan was just to create the smoke animation, but it kind of grew from there.. What is a cartoon bomb? How do you make a cartoon bomb? This script and codes were developed by Tcmulder on 05 August 2022, Friday.

Cartoon Bomb Previews

Cartoon Bomb - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cartoon Bomb</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html, body { width: 100%; height: 100%;
}
body { background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #555), color-stop(100%, #111));
}
.circle-1,
.circle-2 { position: absolute; left: 300px; bottom: 500px; width: 50px; height: 100px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; z-index: 10;
}
.circle-1:before, .circle-1:after,
.circle-2:before,
.circle-2:after { content: ""; position: absolute; bottom: 1%; border-radius: 100% / 100%;
}
.circle-1:after,
.circle-2:after { top: 20px; right: 20%; left: -5%;
}
.circle-1:before,
.circle-2:before { top: 10px; right: -10%; left: 5%;
}
.circle-2 { width: 20px; height: 50px; margin-left: 15px; background: rgba(255, 255, 255, 0.1);
}
.bomb { position: absolute; left: 230px; bottom: 150px; width: 350px; height: 350px; margin-left: -200px; background-image: -webkit-radial-gradient(left top, circle, #444 0%, #000 100%); border-radius: 50%; box-shadow: inset -90px 90px 300px rgba(255, 255, 255, 0.01), inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.bomb:before { content: ""; position: absolute; top: -20px; right: 50px; width: 50px; height: 100px; border: 5px solid transparent; border-right-color: #000; border-radius: 50%; transform: rotate(10deg);
}
.bomb:after { content: ""; position: absolute; right: 65px; top: 71px; width: 5px; height: 20px; background-color: rgba(0, 0, 0, 0.3); box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.8); transform: rotate(-15deg); border-radius: 50%;
}
.shadow { position: absolute; bottom: -25px; left: 100px; width: 100%; height: 15%; background: -webkit-gradient(linear, left center, right center, color-stop(0%, rgba(0, 0, 0, 0.8)), color-stop(100%, rgba(0, 0, 0, 0.1))); border-radius: 50%; box-shadow: 10px 0 5px rgba(0, 0, 0, 0.1); z-index: -1;
}
@keyframes smokin-1 { 0% { box-shadow: 0 0 10px transparent; animation-timing-function: ease-in; } 50% { box-shadow: 0 -50px 50px rgba(0, 0, 0, 0.8); animation-timing-function: linear; } 100% { box-shadow: -50px -200px 100px transparent; animation-timing-function: ease-out; }
}
@keyframes smokin-2 { 0% { box-shadow: 0 0 10px transparent; animation-timing-function: ease-in; } 50% { box-shadow: -20px -50px 50px rgba(0, 0, 0, 0.8); animation-timing-function: linear; } 100% { box-shadow: 20px -200px 100px transparent; animation-timing-function: ease-out; }
}
@keyframes smokin-3 { 0% { box-shadow: 0 0 10px transparent; animation-timing-function: ease-in; } 50% { box-shadow: 15px -50px 50px rgba(0, 0, 0, 0.8); animation-timing-function: linear; } 100% { box-shadow: -15px -200px 100px transparent; animation-timing-function: ease-out; }
}
.flame,
.flame:before,
.flame:after { background: transparent; background-image: -webkit-radial-gradient(center bottom, ellipse farthest-corner, white 0%, rgba(255, 255, 100, 0.5) 50%, rgba(255, 0, 0, 0.2) 100%); animation-duration: 2s, 2s; animation-name: burnin, smokin-1; animation-iteration-count: infinite, infinite;
}
@keyframes burnin-1 { 0% { opacity: .5; animation-timing-function: ease-in; } 50% { opacity: .6; height: 110px; animation-timing-function: linear; } 100% { opacity: .5; animation-timing-function: ease-out; }
}
@keyframes burnin-2 { 0% { opacity: .3; animation-timing-function: ease-in; } 50% { opacity: .2; top: -10%; animation-timing-function: linear; } 100% { opacity: .3; animation-timing-function: ease-out; }
}
@keyframes burnin-3 { 0% { opacity: .5; transform: rotate(5deg); animation-timing-function: ease-in; } 50% { opacity: .2; transform: rotate(-5deg); top: -10%; animation-timing-function: linear; } 100% { opacity: .5; transform: rotate(5deg); animation-timing-function: ease-out; }
}
@keyframes glowin { 0% { background-image: -webkit-radial-gradient(left top, circle, #444 0%, #000100 100%); } 25% { background-image: -webkit-radial-gradient(left top, circle, #444 0%, #050000 100%); } 100% { background-image: -webkit-radial-gradient(left top, circle, #444 0%, #000100 100%); }
}
.circle-1 { animation-delay: .2s; animation-duration: .5s, .3s; animation-name: smokin-1, burnin-1; animation-iteration-count: infinite;
}
.circle-1:before { animation-delay: .5s; animation-duration: 1.5s, .2s; animation-name: smokin-2, burnin-2; animation-iteration-count: infinite;
}
.circle-1:after { animation-delay: .8s; animation-duration: 1.5s, .3s; animation-name: smokin-3, burnin-3; animation-iteration-count: infinite;
}
.circle-2 { animation-delay: .8s; animation-duration: 1.5s; animation-name: smokin-1; animation-iteration-count: infinite;
}
.circle-2:before { animation-delay: 1.2s; animation-duration: 1.5s; animation-name: smokin-2; animation-iteration-count: infinite;
}
.circle-2:after { animation-delay: 1.5s; animation-duration: 1.5s; animation-name: smokin-3; animation-iteration-count: infinite;
}
.bomb { animation-duration: .1s; animation-name: glowin; animation-iteration-count: infinite;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="circle-2 smoke"></div>
<div class="circle-1 flame smoke"></div>
<div class="bomb"><div class="shadow"></div></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Cartoon Bomb - Script Codes CSS Codes

html, body { width: 100%; height: 100%;
}
body { background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #555), color-stop(100%, #111));
}
.circle-1,
.circle-2 { position: absolute; left: 300px; bottom: 500px; width: 50px; height: 100px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; z-index: 10;
}
.circle-1:before, .circle-1:after,
.circle-2:before,
.circle-2:after { content: ""; position: absolute; bottom: 1%; border-radius: 100% / 100%;
}
.circle-1:after,
.circle-2:after { top: 20px; right: 20%; left: -5%;
}
.circle-1:before,
.circle-2:before { top: 10px; right: -10%; left: 5%;
}
.circle-2 { width: 20px; height: 50px; margin-left: 15px; background: rgba(255, 255, 255, 0.1);
}
.bomb { position: absolute; left: 230px; bottom: 150px; width: 350px; height: 350px; margin-left: -200px; background-image: -webkit-radial-gradient(left top, circle, #444 0%, #000 100%); border-radius: 50%; box-shadow: inset -90px 90px 300px rgba(255, 255, 255, 0.01), inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.bomb:before { content: ""; position: absolute; top: -20px; right: 50px; width: 50px; height: 100px; border: 5px solid transparent; border-right-color: #000; border-radius: 50%; transform: rotate(10deg);
}
.bomb:after { content: ""; position: absolute; right: 65px; top: 71px; width: 5px; height: 20px; background-color: rgba(0, 0, 0, 0.3); box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.8); transform: rotate(-15deg); border-radius: 50%;
}
.shadow { position: absolute; bottom: -25px; left: 100px; width: 100%; height: 15%; background: -webkit-gradient(linear, left center, right center, color-stop(0%, rgba(0, 0, 0, 0.8)), color-stop(100%, rgba(0, 0, 0, 0.1))); border-radius: 50%; box-shadow: 10px 0 5px rgba(0, 0, 0, 0.1); z-index: -1;
}
@keyframes smokin-1 { 0% { box-shadow: 0 0 10px transparent; animation-timing-function: ease-in; } 50% { box-shadow: 0 -50px 50px rgba(0, 0, 0, 0.8); animation-timing-function: linear; } 100% { box-shadow: -50px -200px 100px transparent; animation-timing-function: ease-out; }
}
@keyframes smokin-2 { 0% { box-shadow: 0 0 10px transparent; animation-timing-function: ease-in; } 50% { box-shadow: -20px -50px 50px rgba(0, 0, 0, 0.8); animation-timing-function: linear; } 100% { box-shadow: 20px -200px 100px transparent; animation-timing-function: ease-out; }
}
@keyframes smokin-3 { 0% { box-shadow: 0 0 10px transparent; animation-timing-function: ease-in; } 50% { box-shadow: 15px -50px 50px rgba(0, 0, 0, 0.8); animation-timing-function: linear; } 100% { box-shadow: -15px -200px 100px transparent; animation-timing-function: ease-out; }
}
.flame,
.flame:before,
.flame:after { background: transparent; background-image: -webkit-radial-gradient(center bottom, ellipse farthest-corner, white 0%, rgba(255, 255, 100, 0.5) 50%, rgba(255, 0, 0, 0.2) 100%); animation-duration: 2s, 2s; animation-name: burnin, smokin-1; animation-iteration-count: infinite, infinite;
}
@keyframes burnin-1 { 0% { opacity: .5; animation-timing-function: ease-in; } 50% { opacity: .6; height: 110px; animation-timing-function: linear; } 100% { opacity: .5; animation-timing-function: ease-out; }
}
@keyframes burnin-2 { 0% { opacity: .3; animation-timing-function: ease-in; } 50% { opacity: .2; top: -10%; animation-timing-function: linear; } 100% { opacity: .3; animation-timing-function: ease-out; }
}
@keyframes burnin-3 { 0% { opacity: .5; transform: rotate(5deg); animation-timing-function: ease-in; } 50% { opacity: .2; transform: rotate(-5deg); top: -10%; animation-timing-function: linear; } 100% { opacity: .5; transform: rotate(5deg); animation-timing-function: ease-out; }
}
@keyframes glowin { 0% { background-image: -webkit-radial-gradient(left top, circle, #444 0%, #000100 100%); } 25% { background-image: -webkit-radial-gradient(left top, circle, #444 0%, #050000 100%); } 100% { background-image: -webkit-radial-gradient(left top, circle, #444 0%, #000100 100%); }
}
.circle-1 { animation-delay: .2s; animation-duration: .5s, .3s; animation-name: smokin-1, burnin-1; animation-iteration-count: infinite;
}
.circle-1:before { animation-delay: .5s; animation-duration: 1.5s, .2s; animation-name: smokin-2, burnin-2; animation-iteration-count: infinite;
}
.circle-1:after { animation-delay: .8s; animation-duration: 1.5s, .3s; animation-name: smokin-3, burnin-3; animation-iteration-count: infinite;
}
.circle-2 { animation-delay: .8s; animation-duration: 1.5s; animation-name: smokin-1; animation-iteration-count: infinite;
}
.circle-2:before { animation-delay: 1.2s; animation-duration: 1.5s; animation-name: smokin-2; animation-iteration-count: infinite;
}
.circle-2:after { animation-delay: 1.5s; animation-duration: 1.5s; animation-name: smokin-3; animation-iteration-count: infinite;
}
.bomb { animation-duration: .1s; animation-name: glowin; animation-iteration-count: infinite;
}
Cartoon Bomb - Script Codes
Cartoon Bomb - Script Codes
Home Page Home
Developer Tcmulder
Username tcmulder
Uploaded August 05, 2022
Rating 3
Size 4,929 Kb
Views 42,504
Do you need developer help for Cartoon Bomb?

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!

Tcmulder (tcmulder) Script Codes
Create amazing web content with AI!

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!