I'm trying to animate the background of my website, which has a solid background, and then I want to "sketch" gridlines over it. Right now I have the background drawn as such:
background-color: #269;
background-image: linear-gradient(@light-grey 2px, transparent 2px),
linear-gradient(90deg, @light-grey 2px, transparent 2px),
linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px);
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
I want it to be like this, except I want the linear-gradients to load one-by-one and make them look sketched in if possible.
I tried looking at this code: Background color change on page load
And it seemed sort of along the tracks of what I'm trying to do, but I don't want the whole background to change, I only want to draw in the grid.
I also think I may need to use this to make it draw in after the page loads: JavaScript that executes after page load
Should I be assigning IDs to the linear-gradients and calling them in a Javascript function?
"Test"
to the div in the JSFiddle you provided, it gets pushed out as the grid wipes. – Emma Jayne Mar 13 '19 at 02:59