Created
October 30, 2019 15:55
-
-
Save idpokute/571466b5ff9d8b3e0142a2b205221501 to your computer and use it in GitHub Desktop.
Simply Get Random Color using Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get random color | |
background-color: ${"#" + (0x1000000 + Math.random() * 0xffffff).toString(16).substr(1, 6)}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment