Is there a way to randomly cycle CSS gradients each time the page is reloaded?
I have defined the following CSS gradients that I want to use:
/* Purple */
.fp-hero {
background: linear-gradient(20deg, #6e48aa 0%, #9d50bb 73%, #b176cc 100%);
}
/* Light Blue */
.fp-hero {
background: linear-gradient(20deg, #1fa2ff 0%, #12d8fa 73%, #a6ffcb 100%);
}
/* Green */
.fp-hero {
background: linear-gradient(20deg, #56ab2f 0%, #a8e063 73%, #dce356 100%);
}
/* Tangerine */
.fp-hero {
background: linear-gradient(20deg, #db5041 0%, #ff7566 73%, #fe8a5b 100%);
}
If anyone has any tips or suggestions, please let me know. Thank you.