Skip to content

Instantly share code, notes, and snippets.

@RayPS
Last active March 20, 2021 13:41
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