Bacon Pancakes
How do I make an bacon pancakes?
Click on Jake to get your unique pancake. This animation is exported from After Effects with Bodymovin. . What is a bacon pancakes? How do you make a bacon pancakes? This script and codes were developed by Kittons on 09 September 2022, Friday.
Bacon Pancakes - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Bacon Pancakes</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id='container'></div> <script src='https://labs.nearpod.com/bodymovin/demo/pancakes/bodymovin.js'></script> <script src="js/index.js"></script>
</body>
</html>
Bacon Pancakes - Script Codes CSS Codes
body, html{ margin:0; width:100%; height:100%; background-color:#333; overflow: hidden;
}
#container{ width: 100%; height:100%; overflow: hidden; cursor: pointer;
}
div{ font-size:0px;
}
Bacon Pancakes - Script Codes JS Codes
var count = 0; var container = document.getElementById('container'); var animData = { container: container, renderer: 'svg', loop: true, prerender: false, autoplay: false, autoloadSegments: false, path: 'https://labs.nearpod.com/bodymovin/demo/pancakes/data.json' }; var anim; var isThrowing = false; anim = bodymovin.loadAnimation(animData); anim.addEventListener('DOMLoaded',startAnimation); container.onclick = throwPancake; function throwComplete(){ isThrowing = false; anim.removeEventListener('loopComplete',throwComplete); } function throwPancake(){ if(isThrowing){ return; } isThrowing = true; anim.playSegments([[27,142],[14,26]],true); var baconRand = Math.random()*1420; var butterXpos; if(baconRand < 1420/2){ butterXpos = 500 + 900 + Math.random()*900; } else { butterXpos = 500 + Math.random()*900; } var baconPos = [-100+baconRand,480+Math.random()*370,0]; var butterPos = [butterXpos,470+Math.random()*430,0]; anim.layers[0].ks.p.k[0].e = baconPos; anim.layers[2].ks.p.k[0].e = baconPos; anim.layers[1].ks.p.k[0].e = butterPos; anim.layers[3].ks.p.k[0].e = butterPos; anim.addEventListener('loopComplete',throwComplete); } function startAnimation(){ anim.playSegments([[0,26],[14,26]],true); }
Developer | Kittons |
Username | airnan |
Uploaded | September 09, 2022 |
Rating | 4.5 |
Size | 2,266 Kb |
Views | 42,504 |
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 |
Behind the Grunt | 1,783 Kb |
Interactive IK from After Effects to svg | 2,268 Kb |
Curved warp | 3,581 Kb |
Animated form validation | 3,760 Kb |
A christmas loop in svg | 2,227 Kb |
Svg jou jou monster | 2,116 Kb |
IK from After Effects to svg | 1,949 Kb |
Catrim cat | 1,810 Kb |
Don dalek | 1,830 Kb |
Shapes | 1,817 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 |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
CSS Google Now | Jackmoran | 3,196 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
Rotating Preloader with Anime.js | Tamashi | 2,450 Kb |
Pure CSS candle light animation by One element | Ksksoft | 2,193 Kb |
Slider css only | Armandobau | 2,161 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
SVG email test v2.0 | M_J_Robbins | 2,090 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!