Thumb-scrubbed page peel back navigation

I wanted to know if I could pair an inset 28 px swipe gutter with a 3D cylinder page-peel shader over two live drawable screens inside one WebGL 2 canvas. Drag right from the orange-tinted left rail to peel the detail screen away, inspect the shaded cream underside and parallax inbox underneath, and release mid-swipe to commit or spring back.

9:41INBOX · ROOT VIEW

Messages

5 threads · 3 unread
9:41DETAIL · LAYERED VIEW
Gutter

Gutter threshold 28 px

All buttons and inputs sit 38 px from the left edge, leaving a 28 px inset swipe rail inside the margin so taps hit controls cleanly and gutter drags peel the whole sheet.

Unread · 0 acks

Starting canvas…

Show the code two drawable screens, 3D cylinder curl shader, gutter spring, geometry sync and 2D fallback
  1. Two live drawable screens in one canvas. Both #view-list and #view-detail sit inside <canvas content="drawable" layoutsubtree>, with inert disabling whichever screen sits underneath.
  2. Analytic 3D cylinder page-peel shader. Renders #view-list at -24% to 0% parallax with a soft cast shadow, wraps #view-detail round the cylinder arc, and paints the shaded cream underside flap with faint bleed-through.
  3. Safe inset gutter threshold and spring settle. Restricts swipe starts to x <= 32 (unless Any-x swipe is enabled) and solves a damped spring on release to commit past 42% or cancel back to the detail screen.
  4. Hit-box calibration with geometryUnit(). Applies parallax translation to #view-list, flips inert and pointer-events cleanly, calls updateElementGeometry() and toggles dataset.hitTick.
  5. Five-argument 2D and plain-HTML fallbacks. Draws sliding parallax and a clipped peel lip using 5-argument and 9-argument drawElementImage() without WebGL 2, or extracts both views into plain HTML on context loss.

How it works

Live checks

Each check builds its own small fixture on the hidden test stage and retires its canvas when done. The visible demo above isn't altered.

ResultExperimentDetail

Findings

Not verified yet in headless Chromium 157 or Chrome 159 on Android. Tap "Run these 5 checks" above to measure this browser.