Skip to content

Instantly share code, notes, and snippets.

@RayPS
Last active March 20, 2021 13:41
Show Gist options
  • Save RayPS/a3cee7c21b0cb22aeb99f2890dff0207 to your computer and use it in GitHub Desktop.
Save RayPS/a3cee7c21b0cb22aeb99f2890dff0207 to your computer and use it in GitHub Desktop.
Framer Simple Grid
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
@RayPS
Copy link
Author

RayPS commented Sep 13, 2016

screen shot 2016-11-20 at 05 09 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment