You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After how many hours you want the popup to get triggered again.
63
+
### Options Description
64
+
-**repeatAfterDays**
65
+
After how many days you want the popup to get triggered again.
74
66
When a user gets the popup that exact timestamp is stored in localstorage and its taken into account next time the user will visit your page.
75
-
Giving a zero, the popup will be shown only once! Until the localstrage of the user gets cleared.
67
+
Giving a zero, the popup will be shown only once! Until the localstrage of the user gets cleared/resets.
76
68
**Give 0 to disable.**
77
69
**This one runs a CHECK before show.**
78
70
79
-
-**scrollPercentage**
80
-
The percentage that the user has to scroll before the pop-up gets triggered.
71
+
-**scrollPercentageToTrigger**
72
+
A scroll percentage that if reached by the user, the pop-up will get triggered.
81
73
**Give 0 to disable.**
82
74
**This one TRIGGERS the popup.**
83
75
84
-
-**navigateBeforeShowSeconds**
85
-
How many seconds the user has to navigate before the pop-up gets triggered.
76
+
-**delaySecondsAndTrigger**
77
+
Trigger the pop-up after a short delay in seconds, once the page has loaded.
86
78
**Give 0 to disable.**
87
79
**This one TRIGGERS the popup.**
88
80
@@ -92,42 +84,32 @@ The larger the number you will give, the more sesitive will be the pop-up on tou
92
84
**Give 0 to disable.**
93
85
**This one TRIGGERS the popup on touch devices.**
94
86
95
-
-**mouseOutEnabled**
96
-
If false. Mouse out eventwill not trigger the pop-up. The user would have to reach navigateBeforeShowSeconds or scrollPercentage to get the popup.
97
-
Ir true, well.. you know, the pop-up is set to get showed on user exit-intent
87
+
-**triggerOnExitIntent**
88
+
If false. Mouse out event, and scroll-up-fast for touch devices, will not trigger the pop-up. The user would have to reach delaySecondsAndTrigger or scrollPercentageToTrigger to get the popup.
89
+
If true, your modal pop-up is set to get triggered on user exit-intent.
98
90
**This one TRIGGERS the popup.**
99
91
100
-
-**showByDefault**
101
-
Show On Mount. When a user visit your page.
92
+
-**scrollDebounceMillis**
93
+
Time in milliseconds to debounce user's scrolling
102
94
103
-
-**showCloseBtn**
104
-
Show a closing button "X" (top-right).
105
-
*You might want to be a lil bit more aggresive asking attention.*
95
+
-**triggerOnPageLoad**
96
+
Show your modal pop-up immediately When a user visits your page.
106
97
107
-
-**color**
108
-
"X" Button color.
109
-
110
-
-**bgroundColor**
111
-
Background Color.
112
-
113
-
-**bdropColor**
114
-
BackDrop Color.
98
+
-**handleScrollBars**
99
+
Composable will handle the value of: `document.body.style.overflowY`.
100
+
Will be eather `auto` (when isShowing is `false`), or `hidden` (when isShowing is `true`)
115
101
116
102
-**LSItemKey**
117
103
Key of Local Storage item.
118
104
You can use a different key to show multiple pop-ups with different behaviour/content.
119
105
120
-
### Use it with defaults
121
-
Please add your content in between the opening and closing tag.
122
-
If you don't add your pop-up content, a fallback content will be shown.
123
-
```
124
-
<vue-exit-intent></vue-exit-intent>
125
-
```
126
-
127
-
# Contribute
128
-
Attach event listeners only if we are sure will show the popup (check localstorage on mount)?
129
-
typescript
130
-
tests
106
+
## Contribute
107
+
Feel free to contribute, message me for your idea.
0 commit comments