Text-shadow fireworks

Size
2,430 Kb
Views
40,480

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 Previews

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>&star;</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();
});
Text-shadow fireworks - Script Codes
Text-shadow fireworks - Script Codes
Home Page Home
Developer Matthias Dittgen
Username matths
Uploaded August 26, 2022
Rating 3
Size 2,430 Kb
Views 40,480
Do you need developer help for Text-shadow fireworks?

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!

Matthias Dittgen (matths) Script Codes
Create amazing love letters 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!