Last active
March 20, 2021 13:41
Framer Simple Grid
This file contains hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.