More cool layer features

In previous tutorials we have described some of the powerful layer options.

But the layer has even more cool features! Here's a demonstration of some of those unique features.

Sticky Layer
A Sticky Layer keeps the layer visible (top/bottom/left/right) at all times. This can be useful if you want to keep a menu or image visible even if the page scrolls. The layer can be animated by setting a delay value. It's also possible to use an offset.
If the option 'Keep original position until layer is about to be hidden' is enabled then the layer will only move to the specified position if it is about to be scrolled outside of the view.

Sticky Layer demo:
Modal Layer
A modal layer mode will position the layer on top of everything. Other items on the page will be disabled until you close the layer.
This is a great way to display announcements or notifications.

Modal layer demo:

Docking Layer
A docking layer allows you to fix a layer to a specific side of the screen or in the center of the screen. The main difference between this mode and the sticky layer mode is that Docking layer mode does not use JavaScript, instead is uses standard CSS techniques. It's just another way for you to use layers and this mode can also be useful for full page headers and footers.

Docking layer demo:

Panel Layer
A Panel Layer is initially invisible, but it can slide from the right or left side of the page by using events (show/hide).

The Display property specifies the relationship of the panel to the page contents. "Push" pushes the page over and "overlay" display the layer over the content. The Dismissible property specifies whether the panel can be closed by clicking outside onto the page.

Panel layer demo:

Full width images
Layers can also be used to display full width or stretched images on the page.

- insert a layer and make it exatcly the same widht as the page
- set mode to "Default'
- enable 'relative horizontal sizing'.
- in the Style properties set the background mode to Image, choose an image and select to 'Do not repeat'
- next set the background size to 'cover', 'contain' or one of the other size option.

- cover
Scales the background image to be as large as possible so that the background area is completely covered by the background image. Some parts of the background image may not be in view within the background positioning area.

- contain
Scales the image to the largest size such that both its width and its height can fit inside the content area.

- percentages
For example: '100% 100%' will strech the images to 100% of the object's width/height. Other values like '50% 50%' are also possible.

- pixels
For example: '320px 250px' will display the image in the specified size.
Copyright 2024 Quick 'n Easy Web Builder
Follow us on: