Hover Expand
Image cards side by side. The card under the pointer opens wide and stays open when the pointer leaves, until another card takes over; the other cards stay narrow. Closed cards show only their images; the open card fades in everything else it holds, such as a caption and a dark overlay.
Hover Expand is a Free widget: it works as soon as the companion plugin is installed.
Requires: nothing beyond the companion plugin: a small script keeps one card open.
Where to find it#
| How | Where |
|---|---|
| As an element | Elements panel › Bricksify › Hover Expand. A Block inserted with five image cards. |
| As a control group | Hover Expand (Bricksify) on Block and Div. Pick Expand on hover in Effect. |
Both use the same settings, saved under the same names. See How widgets work for the difference between the two.
Settings#
| Setting | Options and default | What it does |
|---|---|---|
| Effect | Expand on hover. Element default: on; control group default: None. | Turns the effect on. |
| Card open on load | Default 2. | 1 = the first card. 0 keeps them all closed until hovered. |
| Opens on | Hover, click or focus (default), Click or tap only. | What opens a card. |
| Open card size | Default 4.8 (times a closed card). | How much wider the open card is. |
| Duration | Default 0.3s. | How long a card takes to open. |
| Text on closed cards | Only on the open card (default), Always visible. | Everything in a card except its images and its Gradient / Overlay. |
| Entrance | Fade in from below when in view (default), None. | The whole row fades in from 20px lower the first time it comes into view. |
Building the cards#
Every direct child is a card. Give the element a height (for example 384px) and Direction row; on phones switch Direction to column and give it a taller height, and the cards open vertically. Inside a card, set the image to position absolute, top and left 0, width and height 100%, object-fit cover; put the caption above it.
See it live#
Toggle and autoplay#
Trigger: Toggle opens a card on click and closes it on a second click (Enter and Space with the keyboard).
Autoplay (1–60s) opens the cards one after the other. It holds while the mouse is over the row, pauses off screen and in a hidden tab, and adds the class is-timing while counting; an element with the class bxhx-progress inside a card fills during the wait.