colorwave.js is a simple library for adding smooth scrolling to a website.
greensock is required and must be loaded before colorwave.js
var colorwave = new Colorwave('.element');
colorwave.start();
options | description | default |
---|---|---|
direction | css linear gradient direction property | to left bottom |
colorA | first color in the gradient | #f02fc2 |
colorB | second color in the gradient | #6094ea |