Adam's Blog

7 Minute Cardio, Give or Take a Minute

November 30, 2026 • 👁️ Loading...

Contact sheet of eight clothed instructor options for 7 Minute Cardio

7 Minute Cardio is eight one-minute moves on a single static page, a countdown ring, and a muted looping clip of a fictional instructor over the countdown.

Cloudflare Pages hosts it. public/ is the whole build. No app server, no video host, no R2.

The title on the site is 7* Minute Cardio. The footer says * Give or take a minute. Eight moves at a minute each is eight minutes.

The timer

Each move gets a minute. There's a countdown ring, beeps in the last 5 seconds, and a wake lock so the phone doesn't sleep. Pause, skip, and reset. Finish and you get confetti and a fanfare.

There's a 3-letter arcade-style high-score leaderboard at /stats, backed by a Cloudflare Pages Function and a D1 database. The share button always shares https://7.dev.pr/.

The eight moves

  1. Bunny Hop
  2. Full Body Swing
  3. Arm Swing (Vertical)
  4. Trunk Twist (Popeye)
  5. Dead Arms
  6. Golf Twist
  7. High 5 March
  8. Side to Side Squat

The first seven come from Instagram reel DQFD972ETcB. 42.4 seconds, 1440x2560, 30 fps, demonstrator on the left half of the frame.

Side to Side Squat isn't in that reel. It comes from a YouTube form clip, about 13.0–21.5 seconds in. I downloaded it as YouTube format 137, 1080p H.264, because system ffmpeg wouldn't decode the AV1 stream.

The icons weren't enough

Originally each move had a small hand-drawn animated SVG. Those icons are still on the page, underneath. A friend couldn't tell the exercises apart from them.

The timer now overlays a muted looping clip of a fictional instructor doing the current move. The video is opacity: 0.58 and object-fit: contain, above the control buttons, so the whole body fits and the countdown reads through her.

The footer says all imagery on the site is AI-generated and the figures are fictional adults. The reel and the YouTube clip stay off the site.

What the stills got wrong

Text-prompted stills with local Flux and Qwen Image Edit drifted off the real moves.

Bunny hop came back as a tuck jump. The move is a small upright bounce with the feet together. Trunk twist moved the head and the spine. The reel keeps the spine quiet and rotates the shoulders. Qwen mixed up left and right, and turned a high-knee march into a tree pose. Body build shifted across passes.

Wan 2.2 image-to-video didn't have the reel's timing or the mechanics either. That pass was 17 frames at 576x832, about a second, ping-ponged forward and backward.

I looked at a heavier character-replacement stack: pose detection, a mask model, a relight LoRA. ComfyUI already has a native Wan Animate 2 node, and that was enough, so I skipped the rest.

One still for every minute

The picture at the top is the contact sheet. Eight clothed options, generated locally with Flux, after a hosted image tool refused 5 of the 8 workout outfits with imagine:content-moderated.

Local Flux UNET, clip_l.safetensors and t5xxl_fp8_e4m3fn_scaled.safetensors, ae.safetensors. Guidance 3.5, Euler, simple scheduler, 20 steps, cfg 1, 768x1344.

I picked Option 1. Dark curly hair, black strappy sports bra, black shorts. File is clothed_opt1.png. That one still is the instructor for all eight moves, so she never changes between minutes.

Puppeting the moves

Motion is Wan 2.2 Animate, the distilled int8 checkpoint wan_animate_2_distill_int8_convrot.safetensors, about 16.6 GB. With it: umt5_xxl_fp8_e4m3fn_scaled.safetensors, clip_vision_h.safetensors, and wan_2.1_vae.safetensors.

It runs in ComfyUI 0.43.0 on Roux, the local RTX 4090 (24 GB VRAM, about 62 GB RAM). Same box as the Zappa video.

Cropped clips of real humans doing each move drive the puppet. The reel moves go in at 384x1152. Side to Side Squat is wider, so that clip is 576x832. Those source clips stay off the website. The instructor on the page is fictional.

The graph:

  • ModelSamplingSD3, shift 5
  • WanAnimate2Cache on CPU, in int8. The GPU cache doesn't fit alongside the 16 GB model.
  • CLIP vision encode
  • 3 text encodes
  • WanAnimate2ToVideo, 81 frames at 16 fps, a 5.0625 second phrase
  • LCM sampler, simple scheduler, 10 steps, cfg 1

Leave the model loaded between moves. Once it's loaded, a clip takes about 2.5 minutes.

Ollama was holding the 4090. ollama stop abliterated:latest cleared it.

ComfyUI history reports the finished .mp4 files under outputs.images, not outputs.videos.

Full Body Swing was rushed

81 frames at 16 fps is 5.06 seconds. The Full Body Swing phrase in the reel is about 7.4 seconds, and the puppet looked rushed. I didn't render it again. ffmpeg retimed the file:

setpts=7.375/5.0625*PTS,fps=16

That comes out to 118 frames, 7.375 seconds, at a constant 16 fps. An earlier variable-frame-rate file still got played at 16 fps by browsers, so it ran too fast.

Eight mp4s next to index.html

Eight static MP4s, 01-bunny.mp4 through 08-squat.mp4, about 8.5 MB total, sit right next to index.html. One <video> tag. The page swaps src as each minute changes.

Unknown paths go back to /. That's public/404.html plus functions/_middleware.js. A _redirects splat rule on Pages would intercept real static assets, including these clips.

The close button Brave wouldn't tap

Close Video used to live inside the highlighted exercise row. That row uses transform: scale(1.03), which creates a stacking context behind the fixed video layer. I set pointer-events: none on the video box. Brave on iOS (WebKit) still hit-tested the whole video box, so the tap never reached the button.

The button is now position: fixed on document.body, z-index: 8, lined up over the active row's right edge. Each frame it reads getBoundingClientRect and moves there.

Still off

Fast frames smear the hair. Swing, golf twist, and one bunny-hop frame are the messy ones.

High 5 March keeps the arms out. The hands are supposed to meet the knee.

Trunk twist is closer to shoulder rotation than the early stills were. It still isn't a perfect match for the reel.

The models still occasionally invent tiny fake logos on the waistband.

Written with Grok 4.7.

🎭 Transform This Post