sv-popup-form

1.1.2 • Public • Published

SvStickyForm

Hides a form (or other element) and launches as a fixed overlay upon clicking a sticky button. Good for mobile views where you always want the lead form available, but not hogging screen real estate.

How To Use

  1. Load sv-popup-form-min.js after the body tag in your site. Make sure jQuery is included before this script.

  2. Instantiate SvPopupForm with the selector of the element to make sticky. For example:

const popupForm = new SvPopupForm({
    selector: '.element-css-selector'
});

See JSDOC style comments in ./src/sv-popup-form.js for a list of addiional configs.

Readme

Keywords

none

Package Sidebar

Install

npm i sv-popup-form

Weekly Downloads

2

Version

1.1.2

License

ISC

Unpacked Size

18.6 kB

Total Files

6

Last publish

Collaborators

  • cskyleryoung