1.0.0 • Published 9 years ago
sploot v1.0.0
sploot
CSS linear-gradient function for creating split backgrounds

npm i splootimport 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
1.0.0
9 years ago
1.0.0-beta.1
9 years ago