This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Kyle Peatt edited this page Jul 8, 2014
·
6 revisions
Pinny is a mobile-first plugin for off-canvas overlays. It's meant to replace the modal dialog pattern on mobile devices for in-depth interactions. It covers either the whole screen or a portion of it.
- Pinny can be triggered by any event.
- Multiple Pinnys can be triggered at any given time.
- Pinny can cover the entire screen or a defined portion of it.
- Pinny's dimensions can be set in one of three ways:
- Cover the whole screen
- Cover a defined percentage or unit value of the screen.
- Dependent on the height of the content within it.
- Pinny can have any markup inside of it. Includes forms/videos/iframes.
- If Pinny is not full-screen, it can be closed by tapping on the remaining visible page.
- Pinny should trap all scrolling within it.
- Pinny appears on screen from wherever you are on the page.
- Pinny smoothly animates in and out.
- Auto-initialize with a
data-attribute
- Fires events on every interaction
- Is unit-testable
- Pinny opens and covers the whole screen without animating
- Pinny animates in smoothly
- Pinny has variable sizes
- Pinny traps scrolling