Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.
/ framer-icon Public archive

Framer.js dynamically tinted icons based off of a template image.

Notifications You must be signed in to change notification settings

peteschaffner/framer-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Framer icon module

Dynamically tinted icons based off of a template image.

Usage

$ cd <myProject>.framer
$ npm install framer-icon

modules/myModule.coffee:

exports.Icon = require "framer-icon"

app.coffee:

{Icon} = require "myModule"

new Icon
  width: 30
  height: 30
  image: "images/icon.png"
  tintColor: "cornflowerblue"

API

Icon#tintColor <string>

Get or set the tint color. Anything accepted by Layer#backgroundColor is valid, with the addition of CSS gradients. Icon#color and Icon#backgroundColor are aliases.

About

Framer.js dynamically tinted icons based off of a template image.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages