1.0.0 • Published 8 years ago

sploot v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

sploot

CSS linear-gradient function for creating split backgrounds

Build Status

sploot!

npm i sploot
import sploot from 'sploot'

const style = {
  backgroundImage: sploot()
}
// 'linear-gradient(180deg, cyan 50%, white 50%)'
// with options
const style = {
  backgroundImage: sploot({
    start: 'tomato',
    end: 'fuchsia',
    position: '25%',
    angle: 90
  })
}

MIT License