{% if site.url == 'local' %} {% else %} {% endif %}

Examples

Single Game Screenshot

See game screenshots in action with three different zoom settings. Option 1: fits both horizontally and vertically. Option 2: fits only horizontally. Option 3: seamless display with zoom animation and a close button.

Game Gallery Display

Each game gallery item can hold any HTML content, mixing various types. This example enables lazy loading for the next image based on swipe direction. For touch swipe support, check out my article.

Game Image Zoom

To open the pop-up only after the image is fully loaded, you can pre-load the image with JavaScript. Alternatively, use a smaller version of the image as a thumbnail. Zoom effects currently only support images.

Video or Map Links

On smaller screens, game pop-ups automatically disable, triggering the link's default behavior.

Animated Pop-ups

Animations are powered by simple CSS transitions, allowing you to customize their look and feel. Discover more animations on CodePen!

Open Fade-in Zoom
Open Fade-in Slide

Dialog example

This is dummy copy. It is not meant to be read. It has been placed here solely to demonstrate the look and feel of finished, typeset text. Only for show. He who searches for meaning here will be sorely disappointed.

Game Registration Pop-up

Your entered data remains safe, whether you close and reopen the pop-up, or navigate away and return using the back button.

Open Registration

Form

Lightbox has an option to automatically focus on the first input. It's strongly recommended to use inline popup type for lightboxes with form instead of ajax (to keep entered data if the user accidentally refreshed the page).


Asynchronous Content Loading

You have full control over the pop-up's content, alignment, and even the scrollbar on the right side – everything is customizable.

Important Notice Pop-up

Modal pop-ups disable standard closing methods.

View Details

Modal dialog

You won't be able to dismiss this by usual means (escape or click button), but you can close it programatically based on user choices or actions.

Dismiss

Loading Error Alert

This is a basic example of how error messages can be displayed. Feel free to modify the text and styling.

Jiuyou Technology Co., Ltd.Phone:+86 138 1968 4472Email:[email protected]WhatsApp:+86 150 4714 6650