Kamiwaza Studio

Guides · Claude Code + Higgsfield

animated hero

Your product rises, something grows out of it, a little cluster drops in and small things start falling. Below, for free: how to make this animation with Claude Code, in nine short prompts. At the end: the complete hero with the texts, the fact pills and the progress bar.

A white pot with a painted face; a plant grows out of it, pink hearts drop in above and small hearts fall
A pot, a plant and hearts
A yellow mug; whipped cream with marshmallows grows out of it, yellow stars drop in above and small stars fall
A mug, whipped cream and stars

kamiwazastudio.com/guide-scroll-hero

What you need

three things

Claude Code

In the terminal or in VS Code. It comes with a paid Claude plan.

Higgsfield

For the pictures and their transparent background. It needs a paid Higgsfield subscription.

Your product

What it is and what could grow out of it. A pot and a plant, a mug and whipped cream, a jar and flowers.

The idea

four layers

The scene is four transparent pictures stacked on each other. The scroll brings them in one after another.

A butter yellow speckled ceramic mug
1. The productrises into place
A swirl of whipped cream with mini marshmallows
2. What grows outscales up from inside it
A cluster of glossy yellow stars
3. The clusterdrops in from above
One small yellow star
4. One small itemkeeps falling or popping

Step by step

nine prompts

Send them one at a time and look at the result before the next. The [brackets] are yours to fill in.

  1. Connect Higgsfield to Claude Code

    Open an empty folder in Claude Code, in the terminal or in VS Code, and send this. Higgsfield runs inside Claude Code through its own command line tool, so Claude Code installs it and you only sign in.

    Prompt 1
    Set up Higgsfield for me so I can generate images from here. 1. Install the CLI: run npm i -g @higgsfield/cli. 2. Authenticate: run higgsfield auth login and wait while I sign in in the browser it opens. 3. Install the companion skills: run npx skills add higgsfield-ai/skills. Tell me when it is ready.
  2. Picture 1: your product

    Your product alone on white. Fill in the brackets. A plain white background makes the cut-out clean.

    Prompt 2
    Generate a product photo with Higgsfield: [your product], front view at eye level, centred, the whole object in frame with air around it, plain pure white background, soft daylight from one side, soft contact shadow, real materials with small imperfections, no text. Make 2 versions, show them to me and wait until I pick one. Then remove the background of the one I pick and save it in this folder as base.png.
  3. Picture 2: what grows out of it

    Step 2 of the scene: what grows out of the product. A plant from a pot, whipped cream on a mug, flowers from a jar.

    Prompt 3
    Generate the next layer with Higgsfield: [what grows out of the product, for example a plant, a swirl of milk foam, a bunch of flowers] alone, without the product, seen front on at eye level from the same height and distance as base.png, gathered at the bottom centre and spreading up and out, plain pure white background, the same soft daylight, no text. It has to look like it comes out of the product in base.png, so match its scale. Show me 2 versions, then remove the background of the one I pick and save it as grow.png.
  4. Picture 3 and 4: the cluster and the small item

    Step 3 and 4: a small cluster that drops in from above and one small item from it that keeps moving. Hearts, bubbles, stars, petals.

    Prompt 4
    Generate two more pictures with Higgsfield, each on a plain pure white background, no text: 1. a cluster of [small things, for example hearts, bubbles, stars], soft clay-like 3D style, glossy, gentle shading, centred; 2. one single [small thing] in the same style, centred. Remove both backgrounds and save them as top.png and particle.png.
  5. Prepare the four files

    Before building, the pictures get checked, cropped and made light, so the page loads fast.

    Prompt 5
    Check base.png, grow.png, top.png and particle.png: the background must really be transparent and nothing may be cut off. Crop each picture to its content, keep the long side at most 1400 px (particle.png at most 300 px) and save each as WebP under 400 KB next to the PNG. Keep the PNG originals in a folder called originals. Tell me if one should be made again.
  6. Build the scene

    The scene itself. Pick one of the two movements for the small items and delete the other bracket.

    Prompt 6
    Build an animated product scene in this folder as one file, scene.html, with its CSS and JavaScript inside. Load GSAP and ScrollTrigger from https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js and https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js. Use my four WebP files: base (the product), grow (what grows out of it), top (the cluster that drops in) and particle (the small item).
    Stage: a box with aspect ratio 60 to 73, height min(78vh, 720px), in the middle of a soft pastel gradient background that covers the whole section. Place the layers in percent of the stage: base 40% wide, centred, its lower edge 7% above the bottom of the stage, soft drop shadow; grow 81% wide, its centre 47% across, its lower edge 37% above the bottom, in front of the base and overlapping its top, so it looks like it comes out of it; top 29% wide, centred, its upper edge 3% below the top, bobbing 8 px every 4.5 seconds. If my pictures have other proportions, keep this idea and adjust the numbers until a screenshot looks right; keep every number in a CSS variable.
    Small items: 18 copies of particle inside a zone from 30% to 70% across and from 27% to 65% down the stage, each about 7.6% of the zone width times its own size factor between 0.7 and 1.3, with its own position, delay (0 to 1.6 s) and duration (1.3 to 2 s), looping. Movement: [fall: each one fades in, falls the height of the zone while speeding up, squashes a little and fades out] or [rise and pop: each one fades in at the bottom of the zone, floats up while swaying a little, then quickly grows by a third and disappears like a popping bubble].
    Motion: the section is 400vh tall and the stage stays pinned on screen while one GSAP timeline is scrubbed by the scroll (scrub 0.6). Opening frame: only the base, 18% of its height lower than its place. From 0 to 1 the base rises into place. From 1 to 2 the grow layer scales up from 8% tall and 60% wide, from a point 52% across and 88% down its own box, with a small overshoot (back.out(1.4)), and fades in. From 2 to 3 the top layer drops in from one full height of its own above and fades in. At 3 the small items fade in. The scene is complete at 3.85; hold it for 0.75 more. Scrolling up plays it backward. To avoid a flash, hide the later layers with a class before the script runs; when GSAP starts, first remove the class, then set the start values with GSAP.
    Phones, 860 px wide and less: no pinning, the scene plays once by itself, 1.5 times faster, when the stage comes on screen. With reduced motion, or if GSAP does not load, show the finished scene. Animate only transform and opacity.
    Then open scene.html in a headless browser, take screenshots at the start, the middle and the end of the scroll, with reduced motion and on a 390 by 844 phone, and fix what does not match. At the end of the scroll every layer must sit exactly where it sits in the reduced motion version. Tell me how to open it and which variables move the layers.
  7. Check it on your phone

    Most visitors see it on a phone. Check it there before you share it.

    Prompt 7
    Open scene.html on my phone size again and make it lighter there if it feels busy: fewer small items, shorter movements, nothing outside the screen. Change only what is needed for phones.
  8. When something looks off

    When something is off, fix one thing at a time instead of asking for everything again.

    Prompt 8
    Something looks off: [describe what you see, for example the plant floats above the pot]. Find which layer or which step of the timeline causes it, fix only that and show me a screenshot before and after.
  9. Put it in your Shopify store

    When you like it, it becomes a section of your theme. Claude Code works on a copy, so your live store is never touched.

    Prompt 9
    Turn scene.html into a Shopify theme section called product-scene, with image settings for the four layers, range settings for their sizes and positions, and the motion unchanged. Work on a copy of my theme, never on the live one: pull my theme with Shopify CLI, add the section, push it as a new unpublished theme and give me the preview link.

    Want it in your store's style? Add this sentence at the end of the prompt above. Claude Code then reads your theme and uses its colours, fonts and buttons instead of the ones from the preview.

    Add-on
    After you pull my theme and before you write the section, read config/settings_data.json, the main CSS file and my product section. Use its colours, fonts, button style and corner radius, and its own classes and variables where they exist, so this looks like the rest of my store. Tell me in a few lines what you will reuse.

Three things that break it: everything in one prompt, pictures shot from different angles, and asking for changes before checking the last one.

Tested

what came out

We gave these prompts to fresh Claude Code sessions that knew nothing about our themes, with two different products.

A white pot with a painted face, a plant growing out of it, a cluster of hearts and small hearts falling
A pot, a plant, a cluster of hearts and falling hearts.
A yellow speckled mug, whipped cream with marshmallows growing out of it, a cluster of stars and small stars falling
A mug, whipped cream, a cluster of stars and falling stars.

Full version

the complete hero

The steps above give you the animation. The complete hero is all of it in one tested prompt, as in our Mochi theme (see it live):

  • a headline whose last word pops in when the scene is complete
  • a sentence, four fact pills and a button with a soft shine
  • a progress pill with four stops that jump to each step
  • stickers, sound words and floating decorations
  • a phone layout that plays by itself
  • every size and timing written out, and seven questions about your product first

€9 (US$10)

Paid once. The prompt as a file, for your own stores and for client stores. Prices in USD, GBP and AUD at checkout.

The complete hero built from the paid prompt: the scene with a headline, fact pills, a button and a progress pill

FAQ

questions

Is it really free?

Yes. Copy the prompts and use them for your own store or for clients. You pay only for your own tools: a Claude plan with Claude Code and a Higgsfield subscription for the pictures.

Do I need to know how to code?

No. Claude Code writes the code. You fill in the brackets, pick the pictures you like and look at the result.

Can I save the guide?

Yes. Press "Save as PDF" and choose Save as PDF in the print window. On a phone, use Share, then Print, then Save to Files.

What is in the complete hero?

Everything around the scene: the headline whose last word pops in when the scene is complete, the sentence, four fact pills, the button, the progress pill with four stops, stickers, sound words, floating decorations and the phone layout, with every size and timing written out. It is one long prompt that asks you seven questions first, tested on fresh Claude Code sessions.

Can I put it in my Shopify store?

Yes, that is the last step. Claude Code works on a copy of your theme and gives you a preview link, so your live store is never touched until you publish it yourself.

rather not build it?

Mochi has this hero ready, with the bundle cards, a short way to the cart and our support. Paid once, one store license.