Skip to content

Instantly share code, notes, and snippets.

@5alidshammout
Forked from Jagathishrex/delaylog.js
Created April 2, 2021 12:51
Show Gist options
  • Save 5alidshammout/1b99c556eb882c32ac337c396bd78146 to your computer and use it in GitHub Desktop.
Save 5alidshammout/1b99c556eb882c32ac337c396bd78146 to your computer and use it in GitHub Desktop.
console.delayLog = function(time, 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);
}, time);
}
console.delayLog(1000, "%cDelayed Log")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment