Justin-Conner.github.io

<!DOCTYPE html>

Circles Grid

Animated Span Short Height

.
This is an animated span with divs that populate the entire space of the parent container.
The code for it as it is can be copied and pasted directly into your project using the code on the right.
    Some suggestions for changes to suit your project.

  • The divs can be adjusted to be "square" by changing the border-radius in the css file.

  • The divs can be adjusted to be different sizes by changing the number (24) value in the JavaScript file:
    // Calculate the number of squares that can fit in the grid let numSquares = Math.floor(window.innerWidth / 24) * Math.floor(window.innerHeight / 24);
    Also change the height and width of the .square in the CSS file.

  • Color changes may be appropriate to fit your project pallette.