Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.
/ sploot Public archive

CSS linear-gradient function for creating split backgrounds

Notifications You must be signed in to change notification settings

jxnblk/sploot

Repository files navigation

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

About

CSS linear-gradient function for creating split backgrounds

Resources

Stars

Watchers

Forks

Packages