A framer module that transitions the background colour of a layer.
Demo - http://share.framerjs.com/m1zbxn0d61nb/
Allows you to use the colourTransition()
function.
The function accepts 4 parameters.
- layer name
- colour (rgba)
- duration (in seconds)
- Frames per second (optional)
Example
module.colourTransition(background, 'rgba(255, 136, 116, 1)', 1, 30)
This will transition a layer called "background" from its original rgba colour to the new colour with a 1 second duration.
The frames per second parameter is optional; it will default to 30fps
To use this module add module = require "colourTransition"
to the head of your project.