9
Have your way | Sparklingman digital poster 021
source link: https://codepen.io/sparklingman/pen/PoJYQRE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
HTML (Haml)
HTML (Haml)
0 unsaved changes
xxxxxxxxxx
#poster
#canvas
:root {
--aqua: #0ff;
--black: #000;
--blue: #00f;
--gold: #fd0;
--grey: #7D808A;
--mint: #0f8;
--pink: #f04;
--white: #fff;
}
*,
*::after,
*::before,
html,
body {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: var(--grey);
display: grid;
xxxxxxxxxx
let box = 60;
let random = (min, max) => {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
let colors = [{
color: "#262626"
},
{
color: "#F2B279"
},
{
color: "#80BDF2"
},
{
color: "#1730BF"
},
{
color: "#D94862"
}
]
function colorRandom() {
return colors[Math.floor(Math.random() * colors.length)].color;
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK