All Projects → jxnblk → Sploot

jxnblk / Sploot

CSS linear-gradient function for creating split backgrounds

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].