JSPM

patapata

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q14896F
  • License MIT

Animation of dom, flipping its sections for showing and hiding the whole

Package Exports

  • patapata

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (patapata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

patapata v1.1.0

Animation of dom, flipping its sections for showing and hiding the whole

Note: This library depends on jQuery and es6-promise.

Usage

<script src="jquery.min.js"></script>
<script src="patapata.js"></script>
<script>
$(function () {
    $('.main').patapata(8, 4, {unitDur: 500}).show().then(function (pp) {
        pp.$dom.click(function () {
            pp.hide();
        });
    });
});
</script>

demo (chrome)

API doc