Projects Hover Rows
This article documents
Projects Hover Rows Pro
A heading with an outline button and full-width project rows over darkened photos that light up on hover.
Requires: nothing. The layout is Bricks settings and the hover is a few lines of CSS on the section’s class, so the template needs no companion script and no library.
How it works#
- Each
Projectrow is a link. Inside it theImagefills the row, theVeilcovers it (black at 80% with a 4px blur) and theContentsits on top in white at 80%. - Hovering the row, or reaching it with the Tab key, lightens the veil to 50% and clears the blur, turns the text white, and opens the
Button revealfrom 0 to 40px while theView buttonfades in. Everything takes 0.3s, ease-out. - The photo is a real Image element (not a background), so it has alt text and lazy loading.
What you replace#
| In the structure panel | What to do |
|---|---|
Eyebrow, Title, Description | The heading texts |
Button - View All Projects | Label and link |
Project ... (4) | Link, photo, number, title, subtitle and description. Duplicate a row to add one |
Layout and breakpoints#
Above 991px number, heading and description sit side by side, the heading and description sharing the width; rows have 96px by 48px of padding and the titles are 36px. At 991px they stack, the padding becomes 56px by 20px and the titles 24px. The section title goes from 72px to 30px at 767px, and the rows start 144px below the button (96px at 767px).
Classes#
Global classes with typed settings: bxpr18-cta, bxpr18-row, bxpr18-img, bxpr18-shade, bxpr18-content, bxpr18-number, bxpr18-heading, bxpr18-title, bxpr18-sub, bxpr18-details, bxpr18-text, bxpr18-reveal, bxpr18-view. The section class bsfy-pr18 holds only the blur, the hover and focus states and reduced motion.
Reduced motion and without JavaScript#
With reduced motion the changes happen without animating. The template needs no JavaScript. On touch screens, which have no hover, the rows keep the veil and the button stays hidden, as in the original; the whole row is still the link.