Overview
How to change random background color in CSS? Ever struck with this question, well if you have then here is your solution. Random BG Color JS can randomly change your css background from a predefined array of background colors. All you need to follow the below steps and you are god to go.
Usage:
Link the JS file to your HTML file’s head section.
<script src=random-bg.js>
Call randomBGColor() function in your body tag as below:
<body onload=randomBGColor()>
Issues/Feedback:
If you come accross any issue with the library, do send me an email [at] [email protected] or raise an issue in GITHUB repo.
Built with