Float a quiz over the page or the video
A small prompt in the page corner or on your video player opens the quiz, and you choose when it appears and how it looks.
In Overlay mode a widget takes no space in your layout. A small prompt floats in the corner of the page, or sits on your video player, and opens the quiz when the reader taps it. You choose when it appears, where it sits and how it looks. The widget's form calls the prompt the launcher.
Turn it on
Overlay is a display mode of the Auto widget and the Single game widget.
- On My Widgets, open the widget's menu, the arrow next to Preview, and choose Edit.
- Under Widget Mode, choose Overlay. It opens to show its settings.
- Set When it appears, Where it sits and Style. Each is described below.
- Click Preview Widget. The preview draws the prompt on a sample page, in the corner or on a sample video, in the style you chose. Click Back to settings.
- Click Save changes. The code on your page stays the same.
An Auto widget shows the prompt once it is active. See Add Lexy to your site.
What the quiz asks
| Widget | Its questions |
|---|---|
| Auto widget | Written from the page the prompt is on. They unlock as the reader reads, watches or listens, and one reader plays the number set under Questions per game. See How the gated card unlocks questions. |
| Single game | The game you chose, with every question ready from the start. |
What readers see
- The prompt. A small card with a light, Play the quiz, one line that says what is ready, a Start button and Not now. The line reads 5 questions ready, or names what opens the rest, such as 2 ready · 3 more unlock as you watch.
- Start. A tap on Start, or anywhere else on the card, opens the quiz. The prompt grows into the quiz and the page dims behind it. A playing video pauses, and plays again when the quiz closes.
- Not now. The card folds to a small mark in the same place, with the light inside a ring and the word Quiz under it. The ring fills as more questions unlock. A tap on the mark opens the card again. The fold lasts for that page view, and the next page shows the card.
- A game closed part way. The card reads Your quiz is waiting, with where the game stands, such as 2 of 5, and a Continue game button. Folded, the mark shows 2/5 in place of the word.
- After a finished game. When the reader closes a quiz they have finished, the prompt leaves the page for the rest of that visit.
Inside the quiz, the header has Minimize, Fullscreen and Close. Minimize shrinks the quiz to a Back to the quiz button in the corner while the game carries on. Close, a tap beside the quiz and the Escape key all close it and keep the game.
When it appears
On a page with a video, the prompt can wait for the viewer. Choose the moment under When it appears.
| Choice | The prompt appears |
|---|---|
| When a question is ready | When the reader has at least one question they can play. On an article that is almost at once. On a video it is when the viewer has watched past the first question's moment. This is the starting choice. |
| As soon as the page opens | As soon as the page has questions, whether or not one is ready yet. |
| After watching | When the viewer has watched for the time you pick in the second list, which offers 15 seconds, 30 seconds, 1 minute and 2 minutes. |
| When the video is paused | When the viewer pauses after watching at least five seconds, and when the video ends. Closing the quiz plays the video again. |
| When the video ends | When the video ends, or when the viewer has watched nearly all of it. |
- A page without a video shows the prompt at once. The three video choices have nothing to wait for there. The same goes for a player inside a frame from another site.
- Once shown, it stays for the rest of the visit, including after the viewer presses play again.
- Watching carries over. A returning viewer's earlier watching counts toward After watching and When a question is ready.
Where it sits
| Choice | Where readers find it |
|---|---|
| Corner of the page | The bottom corner of the screen, over the page. This is the starting choice. |
| On the video | Inside the video's frame, at its bottom corner, clear of the player's controls. It follows the player as the page scrolls. While the player is partly off screen, or too small to carry it, the prompt moves to the page corner and glides back when the player returns. |
Clear the corner hides whatever already sits where the prompt lands in the page corner, such as a chat bubble, and puts it back afterwards. Consent and accessibility controls stay in place. It is on to begin with.
Over a fullscreen video
When a viewer takes the video fullscreen, the prompt comes along, wherever it sits on the page.
- While the video is paused. The prompt shows over the paused picture. A tap on it opens the quiz there, and closing the quiz returns to the video, playing. A tap on the empty screen goes back to the video too.
- While the video is playing. The prompt is drawn in the bottom corner of the screen. A tap on it pauses the video and opens the quiz.
- On a phone's own fullscreen player. The player takes the whole screen for itself, so the prompt appears when the viewer leaves fullscreen.
Style and voice
| Setting | What it does |
|---|---|
| Style | Brand color fills the prompt with the widget's color. Dark glass is a dark, see-through prompt with neutral text that sits well on any page or video, and the quiz it opens is dark glass too. See Match the widget to your site. |
| Voice enabled | Lexy reads the questions aloud and listens for spoken answers. Readers can also tap. It is on to begin with. |
Common questions
Do I need new embed code for Overlay?
Your embed code stays as it is. The mode is saved with the widget, and readers see the prompt the next time the widget loads.
Can my own page decide when the prompt shows?
Yes. Your page's script can show and hide the prompt, open the quiz from your own button, and hear when the prompt shows. See Control the quiz prompt from your own page.
Why did the prompt show straight away on my video page?
The prompt waits for a video it can follow. When your player sits in a frame from another site, Lexy has no video to follow, so the prompt shows at once.
Can the prompt sit on the left?
Yes. Add position="bl" to the widget's tag and the prompt takes the bottom left corner. See Control the quiz prompt from your own page.
Thanks for letting us know.
Thanks. Write to support@lexy.fm with what you were looking for, and we will answer and improve this page.