Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/panphora/polite-email-popup
Polite Email Popup 😇📫
https://github.com/panphora/polite-email-popup
email email-sign exit intent intent-modal polite popup
Last synced: about 2 months ago
JSON representation
Polite Email Popup 😇📫
- Host: GitHub
- URL: https://github.com/panphora/polite-email-popup
- Owner: panphora
- License: other
- Created: 2020-06-21T18:48:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T02:59:49.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T11:41:12.729Z (8 months ago)
- Topics: email, email-sign, exit, intent, intent-modal, polite, popup
- Language: JavaScript
- Homepage:
- Size: 1.74 MB
- Stars: 19
- Watchers: 1
- Forks: 7
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Polite Email Popup
A customizeable and accessible email sign up form that makes sure visitors are engaged with your content *before* asking for their email addresses.
### Why?
You want to **grow your audience as much as possible, but also be polite about it**.
This plugin was made for small businesses and indie makers who want a simple all-in-one solution for collecting email addresses.
### Features
* When this plugin detects a user is engaged with your content, it will trigger:
* An email sign up form along the bottom of your page
* An exit-intent modal (which is disabled on mobile)* The modal's accessibility features
* The `aria-hidden` attribute is toggled on modal and page content
* Focus is trapped within the modal while it's open
* The focus position is put back where it was taken from before toggling the modal
* The first focusable element within the modal (the email input) is focused when it opens### Politeness Rules
These rules determine when the modal and bottom bar sign up forms trigger.
[Document with the rules for when it will trigger](https://docs.google.com/document/d/1zBnJ2lj0PW0lkdfggaJytKFnDkggymcDGi4iG09FqPc/edit?usp=sharing)