Page sections

App showcase

Show a featured home or your property app on a browser, a tablet and a phone, with floating chips for the features people look for. Made for featured property and app sections.

Examples

Property app section

A complete section for a featured property or your app: text and buttons on the left, the devices on the right. Use a photo of the exterior and photos of the rooms. Move your mouse over the dark area. The devices and chips shift by different amounts, which gives the group some depth.

Featured home

Bright rooms on a quiet street

A family home with an open kitchen, a sunny living room and a garden that faces south. Look through every room from your phone, then book a viewing this week.

  • 4 bedrooms and 3 bathrooms
  • Private garden and a double garage
  • Smart heating and fast fiber internet
4 bedrooms Private garden Smart home
A white modern house with a flat roof and a quiet lawn
The living room of the house
The kitchen of the house

The first room photo is hidden below 768 px and the chips below 992 px, so the group stays tidy on small screens. data-device-zone on the section makes the whole dark area react to the pointer. The pointer motion is switched off for touch screens and for visitors who prefer reduced motion.

Single photo

The large image works on its own. It has no frame, border or shadow, and its edges fade into the section behind it, so use an image whose background matches the section.

A white modern house with a flat roof and a quiet lawn

Room photos

The room photos use a normal landscape shape with rounded corners and a thin light border. Set the width on a wrapper and the photo follows it.

The living room of the house
The kitchen of the house

How to use it

  1. Add your own photos. Use an exterior image for the large one and room photos for the two smaller ones. Aim for about 1440 × 900 for the large image and 960 × 720 for the room photos. Export at twice that size as WebP or JPG so the images stay sharp. Keep width and height on every image to avoid layout shift.
  2. Write alt text that describes what each photo shows, such as "The living room of the house".
  3. Turn on the pointer motion by adding data-device-stage to the stage. It is handled by assets/js/effects.min.js, which is already on every page. It does nothing on touch screens or when the visitor prefers reduced motion.
  4. Need the dark background? Wrap the stage in .device-backdrop, or place the stage on your own dark section. The chips are designed for a dark surface and stay dark in light and dark mode.

Classes and attributes

NamePurpose
.photo-stageHolds the photos and chips and places them. The large image fills the stage, the two room photos overlap its corners.
data-device-stageOn the stage. Makes the photos and chips move with the pointer.
data-device-zoneOptional, on a parent of the stage. That parent becomes the pointer area, such as a whole section.
.device-backdropOptional dark section background with soft color glows.
.photo-mainThe large image. No border, radius or shadow; its edges fade into the section.
.photo-side, .photo-smallThe two room photos. Landscape, rounded corners and a thin light border. The first is hidden below 768 px.
.photo-chipA floating glass label with a round icon. Add a position class inside a stage: .photo-chip--tl (top left), .photo-chip--mr (middle right) or .photo-chip--tr (top right). Hidden below 992 px.
--px, --pyNumbers from -1 to 1 set by the script as the pointer moves. The photos and chips use them to shift.