Last active
March 20, 2021 13:41
-
-
Save RayPS/a3cee7c21b0cb22aeb99f2890dff0207 to your computer and use it in GitHub Desktop.
Framer Simple Grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
column = 4 | |
count = 19 | |
gutter = 10 | |
cellSize = | |
width: 100 | |
height: 100 | |
for i in [0...count] | |
offsetX = i % column | |
offsetY = Math.floor i / column | |
new Layer | |
size: cellSize | |
x: offsetX * cellSize.width + offsetX * gutter | |
y: offsetY * cellSize.height + offsetY * gutter | |
backgroundColor: Utils.randomColor() | |
html: i + 1 |
Author
RayPS
commented
Sep 13, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment