Sections

Heights Educational / Ingredients section

A educational / ingredients section from heights.com, previewed live.

EducationalIngredientsSupplements

Built with
Shopify
See 3 more sections from Heights
Visit site

Heights

How to build it on Shopify and how it moves. Not the brand’s code: one prompt for your AI.

A centred header (heading, subheading, button that opens a side drawer of full ingredients) above a two-column area: a single-open accordion of ingredient items on the left and an image on the right that swaps to the open item's image.

Ingredients1 block type16 settings

Read from the recording; layouts at other screen sizes are inferred. Structure only: colours, fonts and copy come from your theme.

Prerequisites

  1. An AI coding tool that can edit files
  2. The Shopify CLI, with your theme pulled
  3. Optional: Shopify AI Toolkit or Dev MCP

Anatomy

The section’s structure on desktop and mobile, by part.

SectionHeaderHeadingSubheadingSee ingredients buttonAccordion and imageAccordionIngredient itemItem headerTitleSummaryPanel+ 2 more×4Image areaIngredient image
  • SectionGroup
    • HeaderGroup

      Centred stack

      • HeadingTextSetting · heading

        Large heading; 4–6 words

      • SubheadingTextSetting · subheading

        One line, ~15 words

      • See ingredients buttonButtonSetting · button_label

        Outline pill; opens the ingredients drawer rather than linking

    • Accordion and imageGroup

      Two columns, accordion ~45%, image ~55%

      • AccordionGroup

        Items separated by thin dividers; one open at a time

        • Ingredient itemGroupRepeats as ingredient blocks

          4 in the reference

          • Item headerControlRepeats as ingredient blocks

            Whole header row is the toggle

            • TitleTextingredient block · title
            • SummaryTextingredient block · summary

              One line beneath the title, always visible

            • Plus/minus iconIconRepeats as ingredient blocks

              Plus when closed, minus when open; generated by state

          • PanelGroup

            Tinted box shown when open

            • Panel headingTextingredient block · panel_heading
            • Panel textRich textingredient block · panel_text

              Bulleted list of 3 items

      • Image areaGroup

        Images stacked; only the open item's image is visible

        • Ingredient imageImageingredient block · image

          Cut-out image, roughly square

    • Ingredients drawerGroup

      Right side panel over a blurred overlay, ~45% width, scrolls internally

      • Drawer titleTextSetting · drawer_title
      • CloseButtonSetting · close_label

        Icon button; label is the ARIA label

      • Drawer contentRich textSetting · drawer_content

        Nutrition table in the reference: name, serving size, servings, rows of ingredient / amount / % reference value

      • Drawer pageShopify datadrawer_page picker · contentinferred

        Optional: render a page's content instead of the richtext, for tables

Layout by breakpoint

Mobileup to 749px

Header, then the image above the accordion (or hidden, with each item's image shown inside its panel). Drawer becomes full width.

Tablet750px and up

Same two columns with a narrower gap.

Desktop990px and up

Centred header above two columns: accordion left, swapping image right, vertically centred.

Interactions

What visitors can do, and what happens.

On click

The clicked item expands its panel and its icon turns to minus; the previously open item collapses; the image area crossfades to that item's image. Clicking another item. The open item stays open when its own header is clicked (inferred).

On click

A side drawer slides in from the right over a blurred overlay. Close button, overlay click or Escape.

Theme editor settings

What a merchant can change on the section.

Content
Headinginline_richtext
Subheadingtext
Show ingredients button and drawercheckbox
Button labeltext
Drawer titletext
Drawer contentrichtext
Drawer pagepage
Close button label (accessibility)text
Layout
Header alignmenttext_alignment
Image position on desktopselectRight / Left
Image ratioselectAdapt to image / Square / Portrait / Landscape
Mobile image positionselectAbove accordion / Inside open item / Hidden
Open first item by defaultcheckbox
Style
Color schemecolor_scheme
Top paddingrange0–100 px
Bottom paddingrange0–100 px

Ingredient blockup to 12 blocks in all

Titletext
Summarytext
Imageimage_picker
Panel headingtext
Panel textrichtext

Starting layouts: Ingredients accordion, Ingredients: image left

Open decisions

Judgment calls made reading the section. Your AI will see these too.

  • Only desktop (~1024px) was recorded; tablet and mobile layouts are inferred.
  • The 'modal' is a right side drawer; built as a dialog drawer, full width on mobile (inferred).
  • Drawer content is richtext with an optional page picker, since nutrition tables are awkward in richtext; a product metafield could also feed it.
  • Single-open accordion observed; whether the open item can be closed by clicking it again wasn't shown.
  • Header alignment and image position are added options; the reference is centred header, image right.
  • Drawer table data comes from merchant content; no columns were modelled as settings.

Build it in your theme

Paste the prompt into your AI tool. It works out your theme’s block setup, then builds the section.

Store Supplies describes how this site is built, using what’s publicly visible, for reference and learning. All trademarks, imagery and designs belong to Heights, which isn’t affiliated with us. Own this site?

Built with

No animation library: this motion is plain CSS and JavaScript.

Also on this site

SwiperCarousels and sliders
SplideCarousels and sliders

An ingredients section with a centred title, subtitle and a button that opens a full-ingredients panel, above an accordion of ingredient rows on the left that open on click and swap the ingredient image on the right. Each click opens one row, closes the previous one and crossfades the matching image, while the button slides in a nutritional information drawer over a blurred page.

On clickOn hover

Read from the uploaded recording; timings are estimates.

Sequence

What happens, in order.

  1. 1
    Open next ingredienton click · ~1.9s

    Clicking a closed row starts the matching ingredient image on the right fading out and the new one fading in place first, a soft crossfade of about 0.4s. About 0.1s later the open row's benefits box collapses while the clicked row rises a short way and its own benefits box expands beneath it, the rows below sliding smoothly rather than jumping. The plus and minus icons swap with a quick turn as rows change state.

    Accordion expandCrossfade slideshowMenu icon morph
  2. 2
    Button presson hover · ~50ms

    The outlined button fills with the dark brand colour on hover and press in a quick, flat change of under 0.1s. No movement, just a colour state confirming the action.

  3. 3
    Ingredients drawer openson click · ~250ms

    The full-ingredients panel slides in from the right edge as one piece, decelerating as it arrives in about 0.3s. At the same time the page behind blurs and dims, and a close button appears.

    Slide-in drawerBackdrop fade
  4. 4
    Drawer closeson click · ~250ms

    Closing slides the panel back out to the right while it fades, and the blur lifts together over about 0.3s, returning the section unchanged.

    Slide-in drawerBackdrop fade

Patterns

The techniques behind it, with typical values. A guide to the approach, not a copy.

Accordion expand

A row opens to reveal more content beneath it, pushing the content below down smoothly instead of jumping.

Typical values
~300ms, ease-in-out (approx., from the recording)
Build with
CSS — animate the height (or grid rows) of the panel, with the content fading in.

Crossfade slideshow

Images replace each other by fading, with the next one appearing over the last. It runs on a timer, often with a gentle zoom on each image.

Typical values
~400ms, ease-out (approx., from the recording)
Build with
CSS — stack the images and transition their opacity on a timer.

Menu icon morph

The menu button changes shape as the menu opens, for example the lines of a hamburger turning into a cross.

Typical values
~250ms, slides right ~5% of the screen, ease-out (approx., from the recording)
Build with
CSS — rotate and move the icon's lines with transforms when the open class is added.

Slide-in drawer

A panel, such as a menu or cart, slides in from the edge of the screen over the page. It moves as one piece and usually decelerates as it arrives, then slides back out to close.

Typical values
~250ms, ease-out (approx., from the recording)
Build with
CSS — translate the panel from off-screen to zero with a transition, toggled by a class when the button is clicked.

Backdrop fade

When a drawer or modal opens, the page behind it darkens or blurs, focusing attention and showing that the rest is inactive.

Typical values
~250ms, ease-out (approx., from the recording)
Build with
CSS — an overlay whose opacity transitions in step with the panel.

Build steps

  1. Build the accordion so only one row is open; on click, animate the open row's content height to zero and the new row's to its natural height together over about 0.35s with an ease-in-out, letting rows below glide.
  2. Morph each row's icon between plus and minus with a quick rotation of one bar as the row opens or closes.
  3. Stack the ingredient images on the right and crossfade to the matching one on click, starting just before the accordion moves, about 0.4s with a soft ease-out.
  4. Give the button a quick fill-colour change on hover.
  5. On button click, slide a drawer in from the right edge over about 0.3s with a decelerating ease, while blurring and dimming the page behind; reverse both to close.

Animation style

Where this motion sits on the motion map.

BCinematicCImmersiveAFunctionalDPlayful
Primary

Functional / Invisible

All motion is short, click-triggered state change: accordion rows open, the product image crossfades, a button fills and a drawer slides in, with no overshoot.

Intensity2/5Subtle to spectacular
Tone2/5Serious to playful
FeelingCalm · Clean · Clinical

Take it with you

Everything above as one Markdown file, for your notes or an AI tool.

Similar sections

More educational / ingredients sections

View all
New
Two Islands educational / ingredients section, supplements Shopify store example, desktop
Two IslandsEducational, Ingredients, Supplements
View
New
Two Islands educational / ingredients / glossary section, supplements Shopify store example, desktop
Two IslandsEducational, Ingredients, Glossary
View
New
Two Islands features / educational / ingredients section, supplements Shopify store example, desktop
Two IslandsFeatures, Educational, Ingredients
View
New
Two Islands features / educational section, supplements Shopify store example, desktop
Two IslandsFeatures, Educational, Supplements
View
New
Two Islands about / ingredients section, supplements Shopify store example, desktop
Two IslandsAbout, Ingredients, Supplements
View
Seed educational / ingredients / usps section, supplements Shopify store example, desktop
SeedEducational, Ingredients, USPs
View
AG1 educational / ingredients section, supplements Shopify store example, desktop
AG1Educational, Ingredients, Supplements
View
Seed educational section, supplements Shopify store example, desktop
SeedEducational, Supplements, Bento
View
New
Eternal Blue educational / ingredients section, cosmetics Shopify store example, desktop
Eternal BlueEducational, Ingredients, Cosmetics
View
New
TWYG Skincare educational / ingredients section, skincare Shopify store example, desktop
TWYG SkincareEducational, Ingredients, Skincare
View
New
TWYG Skincare features / educational / ingredients section, skincare Shopify store example, desktop
TWYG SkincareFeatures, Educational, Ingredients
View
New
TWYG Skincare image with text / educational / ingredients section, skincare Shopify store example, desktop
TWYG SkincareImage with Text, Educational, Ingredients
View

More from Heights

Other sections from this website

View all
Heights about / stats section, supplements Shopify store example, desktop
HeightsAbout, Stats, Supplements
View
Heights social / ugc section, supplements Shopify store example, desktop
HeightsSocial, UGC, Supplements
View
Heights hero section, supplements Shopify store example, desktop
HeightsHero, Supplements, Playful
View

The best of Shopify, curated weekly.

WebsitesSectionsFeatures
LoginSign up