ricardrovirag ricardrovirag - 1 year ago 122
CoffeeScript Question

How can I mask an Image into a Layer?

These are my first steps with FramerJS and I would like to know how to mask an Image into a different layer when I scale the image with an animation.


Answer Source
layer = new Layer width: 256, height: 256
layer.style =
  "-webkit-mask-image": "url(images/framer-icon.png)"

you can mask an image using "-webkit-mask-image". this property is only worked in Webkit-based browser, but framer is also worked in Webkit-based.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download