Skip to content

Instantly share code, notes, and snippets.

@disco0
Forked from Jagathishrex/delaylog.js
Created December 15, 2020 08:10
Show Gist options
  • Save disco0/694fce668081b941c192a138dddeeefb to your computer and use it in GitHub Desktop.
Save disco0/694fce668081b941c192a138dddeeefb to your computer and use it in GitHub Desktop.
console.delayLog = function(delayMs, message) {
var style =
"color: rgb(249, 162, 34);" +
"font-size: 60px;" +
"font-weight: bold;" +
"text-shadow: 1px 1px 5px rgb(249, 162, 34);" +
"filter: dropshadow(color=rgb(249, 162, 34), offx=1, offy=1);";
setTimeout(function() {
console.log(message, style);
}, delayMs);
}
console.delayLog(1000, "%cDelayed Log")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment