clip-path-polyfill

1.0.0 • Public • Published

Clip-path responsive cross-browser polyfill

  • Support: IE 9+, Edge(12+), Chrome(4+), FF(3.6+), Safari(4+), Opera(10.1+),
  • Dependencies: JQuery
  • Replace img by canvas

DEMO:

https://stasglebov.github.io/Clip-path-polyfill/

How to use:

<img src="img.jpeg" data-polyclip="0, 10%, 50%, 0, 75%, 75%, 0, 80%">

! IMPORTANT ! You need separate every figure coordinate (x, y) by coma

Enjoy!

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i clip-path-polyfill

      Weekly Downloads

      211

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      34.5 kB

      Total Files

      3

      Last publish

      Collaborators

      • stasglebov