Text-shadow fireworks
How do I make an text-shadow fireworks?
Single element to spawn, text-shadow with blur & some Javascript. What is a text-shadow fireworks? How do you make a text-shadow fireworks? This script and codes were developed by Matthias Dittgen on 26 August 2022, Friday.
Text-shadow fireworks - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Text-shadow fireworks</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> <div id="info"> <h1>Text-shadow fireworks</h1> <p>single element to spawn, text-shadow with blur & some Javascript</p>
</div>
<h2>☆</h2> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Text-shadow fireworks - Script Codes CSS Codes
html,
body { width: 100%; height: 100%; margin: 0;
}
body{ position: relative; background-color: #333333;
}
#info { position: absolute; top: 0px; left: 0px; margin: 12px 0 0 12px;
}
h1 { color: #eeeeee; font-size: 21px; font-weight: normal; margin: 0;
}
p, a { margin: 3px 0 0 0; color: #cccccc; font-size: 13px;
}
h2{ position: absolute; top: -120px; left: -120px; font-family: Tahoma; font-weight: bold; font-size: 80px; -webkit-font-smoothing: antialiased; color: transparent; text-shadow: 2px 2px 1px #cc6, 0px 3px 1px #c6c, -2px 2px 1px #6cc, -3px 0px 1px #c66, -2px -2px 1px #6c6, 0px -3px 1px #66c, 2px -2px 1px #ccc, 3px 0px 1px #666;
}
Text-shadow fireworks - Script Codes JS Codes
$(function () { // dom ready event var h = $('h2'); var ts = h.css('text-shadow'); var rri = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }; var loop = function (nh, count, size) { count++; var val1, val2, val3; nts = ts.replace(/(-?\d*)px (-?\d*)px (-?\d*)px/g, function(match, group1, group2, group3) { val1 = parseInt(group1, 10); val1 *= count*2; val2 = parseInt(group2, 10); val2 *= count; val3 = parseInt(group3, 10); val3 = Math.floor(count/5); return val1 + 'px ' + val2 + 'px ' + val3 + 'px'; }); nh.css('text-shadow', nts); var fs = nh.css('font-size'); fs = fs.substring(0, fs.length-2); fs--; nh.css('font-size', fs+'px'); if (count < size) setTimeout(function() { loop(nh, count, size); }, 1000/60); else { nh.remove(); ran(); } }; var ran = function () { loop(h.clone().css({'top': rri(0,200), 'left': rri(0,500)}).insertAfter(h), 0, 50); }; ran();
});
Developer | Matthias Dittgen |
Username | matths |
Uploaded | August 26, 2022 |
Rating | 3 |
Size | 2,430 Kb |
Views | 40,480 |
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 |
Additive color mixing | 2,865 Kb |
Centering something | 2,199 Kb |
Shapes in cricles | 2,368 Kb |
D3 bar chart experiment | 2,838 Kb |
Animating non-CSS property | 3,794 Kb |
Additive color mix with triangles | 2,760 Kb |
Text-shadow outline demo | 2,218 Kb |
Beautiful canvas stars | 2,399 Kb |
1x1 trainer | 2,566 Kb |
Timebox | 4,202 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 |
Social Profiles | Lachlanjc | 1,939 Kb |
CSS Colors | Alexpate | 2,232 Kb |
Login-ng-modal | Heedoo | 3,566 Kb |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Sexy Social Buttons | Ipiyale | 2,226 Kb |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Feedback Page | TessDiNapoli | 2,836 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Transition | Shayhowe | 1,632 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!