Sections

AG1 Educational / Ingredients section

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

EducationalIngredientsSupplementsGrid

Built with
Shopify
See 2 more sections from AG1
Visit site

AG1

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

A heading and subheading above a grid of square image cards; each card shows a title over the image with a chevron, and clicking the card slides the title up to reveal a short description.

Ingredients1 block type10 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.

SectionHeaderHeadingSubheadingIngredient gridIngredient ca…ImageText ov…Title×8
  • SectionGroup

    Header stacked above the card grid.

    • HeaderGroup

      Left-aligned, spans the full content width.

      • HeadingTextSetting · heading

        Large heading of 2 lines. It can include a superscript footnote marker, so inline_richtext is used.

      • SubheadingRich textSetting · subheading

        Body paragraph of about 2 lines (roughly 40 words).

    • Ingredient gridGroup

      4 equal columns on desktop, with 8+ cards in 2+ rows.

      • Ingredient cardButtonRepeats as ingredient blocks

        Rounded square card. Clicking the whole card toggles it. Each card toggles independently, so several can be open at once.

        • ImageImageingredient block · image

          Fills the card and acts as the background layer.

        • Text overlayGroup

          Pinned to the bottom of the card over a gradient scrim. Holds the title, the chevron and the hidden description.

          • TitleTextingredient block · title

            1–2 words.

          • ChevronIconSetting · toggle_aria_label

            Decorative indicator. It flips direction when the card is open. Its ARIA label comes from a setting.

          • DescriptionRich textingredient block · description

            About 20 words. Hidden until the card is opened.

Layout by breakpoint

Mobileup to 749px

Header above the grid, with cards in 2 columns that wrap into rows.

Desktop990px and up

Header above the grid, with cards in 4 equal columns that wrap into rows.

Interactions

What visitors can do, and what happens.

On click

The title slides up and the description fades in beneath it; the chevron flips. Clicking the card again closes it.

Theme editor settings

What a merchant can change on the section.

Content
Headinginline_richtext
Subheadingrichtext
Card toggle accessibility labeltext
Layout
Header alignmenttext_alignment
Columns on desktoprange2–6
Columns on mobilerange1–2
Image ratioselectSquare / Portrait / Landscape / Adapt to image
Style
Color schemecolor_scheme
Top paddingrange0–100 px
Bottom paddingrange0–100 px

Ingredient blockup to 24 blocks in all

Imageimage_picker
Titletext
Descriptionrichtext

Starting layouts: Ingredient grid

Open decisions

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

  • The mobile 2-column layout comes from the editor note; it was not seen in the recording.
  • Cards toggle independently (several can be open at once, as recorded); an accordion-style 'one open at a time' option was not added.
  • The second row of cards is only partly visible; it is assumed to behave the same as the first.
  • The footnote markers in the heading and descriptions are kept as inline content in the richtext fields; no separate footnote setting is provided.
  • Tablet layout was not observed; columns_desktop is assumed to apply from 750px up.

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 AG1, which isn’t affiliated with us. Own this site?

Built with

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

An ingredients section with a title and subtitle above a grid of photo cards; clicking a card pushes its title up from the bottom edge to reveal a short ingredient description beneath, and clicking again collapses it.

On click

Read from the uploaded recording; timings are estimates.

Sequence

What happens, in order.

  1. 1
    Open first cardon click · ~200ms

    Clicking the fourth card in the top row makes its bottom caption expand: the ingredient title rises a short way while the description text fades in beneath it over a darkening gradient. It takes about 0.2s with a quick ease-out, and the chevron flips to point up.

    Accordion expandFade-and-slide
  2. 2
    Open second cardon click · ~250ms

    Clicking the third card opens its caption the same way, independently of the first, which stays open. The title lifts and the description fades up over about 0.3s, settling softly.

    Accordion expandFade-and-slide
  3. 3
    Close cardson click · ~1s

    Clicking an open card reverses the reveal: the description fades out and the title drops back to its resting place at the bottom edge in about 0.2–0.3s. The third card closes first, then the fourth.

    Accordion expandSimple 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
150–250ms, ease-out (approx., from the recording)
Build with
CSS — animate the height (or grid rows) of the panel, with the content fading in.

Fade-and-slide

An element fades in while moving a short distance into its resting place. It is the workhorse entrance for captions, buttons and controls.

Typical values
~250ms, ease-out (approx., from the recording)
Build with
CSS — a transition on opacity and transform, triggered by adding a class.

Simple fade

An element fades in or out without moving. Used for supporting content where movement would distract.

Typical values
150–250ms, ease-out (approx., from the recording)
Build with
CSS — a single opacity transition.

Build steps

  1. Build a four-column grid of square image cards (two columns on mobile), each with a bottom caption holding the title, a chevron and a hidden description.
  2. Add a soft dark gradient behind the caption so white text stays legible over the photo.
  3. On click, toggle an open state on that card only; let several cards be open at once.
  4. When opening, expand the caption's height so the title rises a short way, and fade the description in with a slight upward move over about 0.2–0.3s, ease-out, no overshoot; flip the chevron.
  5. When closing, reverse it: fade the description out and let the title settle back down to the bottom edge over a similar duration.

Animation style

Where this motion sits on the motion map.

BCinematicCImmersiveAFunctionalDPlayful
Primary

Functional / Invisible

Short, click-triggered reveals of text within cards with small distances and no overshoot simply confirm and expose information.

Intensity1/5Subtle to spectacular
Tone2/5Serious to playful
FeelingCalm · Clean · Informative

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 about / ingredients section, supplements Shopify store example, desktop
Two IslandsAbout, Ingredients, Supplements
View
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
Seed educational / ingredients / usps section, supplements Shopify store example, desktop
SeedEducational, Ingredients, USPs
View
Heights educational / ingredients section, supplements Shopify store example, desktop
HeightsEducational, 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 AG1

Other sections from this website

View all
AG1 compare table section, supplements Shopify store example, desktop
AG1Compare table, Supplements, Table
View
AG1 hero section, supplements Shopify store example, desktop
AG1Hero, Supplements
View

The best of Shopify, curated weekly.

WebsitesSectionsFeatures
LoginSign up