postcss-clip-path

0.0.2 • Public • Published

PostCSS clip-path

NPM version Build Status Dependency Status

PostCSS PostCSS plugin that adds clip-path value from clippy.

.foo {
  clip-path: triangle;
}
.foo {
  clip-path: polygon(50% 0%0% 100%100% 100%);
}

--

Value

  • triangle
  • trapezoid
  • parallelogram
  • rhombus
  • pentagon
  • hexagon
  • heptagon
  • octagon
  • nonagon
  • decagon
  • bevel
  • rabbet
  • leftArrow
  • rightArrow
  • leftPoint
  • rightPoint
  • leftChevron
  • rightChevron
  • star
  • cross
  • message
  • close
  • frame

--

Usage

postcss([ require('postcss-clip-path') ])

See PostCSS docs for examples for your environment.

--

License

MIT © zhouwenbin

Package Sidebar

Install

npm i postcss-clip-path

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • zhouwenbin