sv-popup-form
v1.1.2
Published
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.
Downloads
1
Readme
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
Load
sv-popup-form-min.js
after the body tag in your site. Make sure jQuery is included before this script.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.