Skip to content

steveruizok/createClass-for-Framer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

createClass for Framer

Create classes based on imported layers. This version includes descendants while preserving their family structure.

Usage

{createClass} = require 'createClassModule'
sketch = Framer.Importer.load("imported/list-class@2x")


Row = createClass(sketch.row)

for i in [0..10]
    item = new Row {y: 200*i}
    item.avatar.borderRadius = "50%"
    item.avatar.image = "http://fillmurray.com/100/100"

To delete the layer after storing it as a class, pass the true argument.

Row = createClass(sketch.row, true)

About

create classes from imported layers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%