Gradientor 0.1

Gradientor is MooTools plugin which will color selected elements in gradient.
All you have to do is to choose elements and set first and last color in gradient.
Also, you can set CSS property on which gradient color should be applied.



Details

Author
Ivan Lazarevic
Current version
0.1
GitHub
kopipejst/Gradientor
Downloads
3093
Category
Widgets
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core

How to use

window.addEvent('domready', function() {
    var gr = new Gradientor({
            selector: $$('b'),
            color_start: 'FE3627', 
            color_end: '590512',
            prop: 'color'
    }); 
})

Note that colors are in HEX format, without #.


Gradientor Options

You should always set selector on color gradient should be applied.

    selector: $$('b') // will apply gradients to b tags

Other options are optional (listis shown default values):

    color_start: 'ffffff', // first color in gradient
    color_end: '000000', // last color in gradient
    prop: 'background-color' // CSS property on which we want to apply gradient

More Info

workshop.rs


Screenshots


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus