cosha
Colorful shadows for your images
Last updated a month ago by rbnlffl .
MIT · Original npm · Tarball · package.json
$ cnpm install cosha 
SYNC missed versions from official npm registry.

cosha

cosha lets you add colorful shadows to your images. Try it out and look for yourself—the bundle is only 1kb small and it couldn't be easier to set up!

yarn add cosha
import Cosha from 'cosha';

const cosha = new Cosha({
    className: 'colorful-shadow',
    blur: '10px',
    brightness: '125%',
    saturation: '110%',
    offsetX: '2px',
    offsetY: '6px'
});

cosha.init();

Everything of the config is optional. You can also initialize it by just writing const shadows = new Cosha();. The default values are:

  • className: 'cosha'
  • blur: '5px'
  • brightness: '100%'
  • saturation: '100%'
  • offsetX: '0px'
  • offsetY: '0px'

It runs on every browser except Internet Explorer. This is because of missing support for CSS filter properties.

Current Tags

  • 0.2.0                                ...           latest (a month ago)

4 Versions

  • 0.2.0                                ...           a month ago
  • 0.1.4                                ...           a month ago
  • 0.1.3                                ...           a month ago
  • 0.1.2                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 179
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |