✦ Members Site · 3D & WebGL

Clearline Dental clinic site with a live 3D glass tooth scan

A dental studio where a procedural glass tooth turns in the hero and scroll scans it into an X-ray and a labelled cross-section, with working booking and prices.

Unlock free with your emailPrompt 109 KB · code .zip 0.6 MB
Clearline at desktop width
Desktop · 1440
Clearline at phone width
Phone · 390

Members

Unlock the prompt, demo and code

Free with your email. We send a confirm link; it unlocks every Members template on this browser.

Your email goes to Kit, our email provider. Privacy

What's in the prompt

  • A full written spec: layout, tokens, every animation with its numbers, responsive rules
  • The complete working code as the reference implementation, also as a ready-to-run .zip with every image, video and 3D model
  • Accessibility, reduced motion and fallbacks already handled
  • A “Make it yours” checklist so your site looks like nobody else’s
Type
Site
Built with
HTML, CSS, JS · three.js 0.170.0
Prompt size
109 KB
Tags
dental clinic, three.js, 3d model, scroll animation, booking
Updated
2026-11-28

Use it in three steps

  1. Unlock it free with your email, then copy the prompt.
  2. Paste it into your AI (Claude, Claude Code, ChatGPT, Cursor…) and add your edits.
  3. Launch the single index.html anywhere: Cloudflare Pages, Netlify, GitHub Pages.

About the Clearline design

Clearline is a full website for a fictional private dental studio in a Georgian townhouse in Clifton, Bristol. The palette is cool porcelain paper (#edefec) and ink with one deep spruce accent (#1e5a52), plus a dark scan room for one chapter. Newsreader sets the headings, Schibsted Grotesk the body and JetBrains Mono the labels, prices and readouts. The signature is a live glass tooth: a lower molar modelled in the browser from signed distance fields (crown, four cusps, a fissure, three curved roots, with dentin and pulp as separate fields) and meshed with surface nets in a Web Worker. It is rendered with MeshPhysicalMaterial transmission over an ivory dentin core on a porcelain plinth, so the glass reads as a clear rim over an ivory core rather than solid crystal. It turns slowly, leans toward the cursor on a spring and can be dragged.

Scrolling into the 420vh technology chapter darkens the room. A glowing scan plane wipes down the tooth and turns it into an X-ray (fresnel glow, scan lines, a wireframe and an amber pulp), then a second plane wipes back up and leaves a cut-away cross-section of enamel, dentin, pulp chamber and root canals, with four labels pinned to the model by camera projection. Bloom, grain, vignette and a slight chromatic shift run as post. The rest is working clinic UI: a six-treatment explorer, a before/after smile slider with two cases, a four-question smile check, prices with a member toggle, four team cards, booking with real free slots and a calendar file, a monthly-payment calculator, an FAQ and today's hours. Twelve sections, about 15 screens at 1440.

Good for

How Clearline is built

Advanced Vanilla HTML/CSS/JS with three.js 0.170.0 and its post-processing addons from jsDelivr via an import map, a Web Worker mesher started from a Blob, and WebGL2; all UI in one classic script that works without 3D

Images, video and 3D

The photographs were made with AI image generation for this template, so the zip includes them: four clinician portraits (720×894), the treatment room (1600×893), reception (900×1117), a still life of aligners and a shade guide (1200×805), and two before/after smile pairs (1400×939) made as edits of the same frame. There is no video and no generated 3D model: the tooth is built in the browser, and the two posters, tooth-poster.webp (720×800) and tooth-section.webp (760×760), are screenshots of the page's own renderer used for fallbacks. The assets come to about 0.64 MB in 15 WebP files; three.js loads from jsDelivr. Members template: unlock free with your email.

Build it with Claude

Ask Claude for the full index.html in one pass. If the preview cannot load three.js from the CDN or has no WebGL2, the page falls back to the poster and the static scan section, so the UI can still be tested. Check that the treatment tabs move with the arrow keys, that the smile check shows "Pick one answer to go on." when Next is pressed empty, that the member toggle shows the £55 check-up and £79 hygiene clean as "Included", and that "Book with Arjun" switches booking to a treatment he offers.

Claude guide →

Build it with Claude Code

Put the zip's assets/ folder beside index.html and serve it with python3 -m http.server, because the mesher runs as a Worker from a Blob and three.js loads through an import map. Then ask Claude Code to scroll the page headlessly and confirm the readout goes from Surface to X-ray to Section, that ?nogl shows the poster and static scan, that reduced motion never starts the 3D, and that a booked slot shows as taken afterwards. Software WebGL is slow, so expect the 9 s safety timer to show the poster first in headless runs.

Claude Code guide →

Build it with ChatGPT

Ask ChatGPT for the page in parts, or in canvas: the HTML and CSS, the UI script (tabs, slider, smile check, prices, booking, calculator), the Worker mesher, then the three.js scene, wipes and post. A common follow-up is the mesher itself: ask it to keep the SDF in the Worker and transfer the buffers back, and to compute normals from the field gradient rather than from the faces, or the surface looks faceted.

ChatGPT guide →

If it doesn’t work

Questions about Clearline

Is the glass tooth a 3D model file?

No. There is no GLB or generated 3D model. The molar is built in the browser from signed distance fields and meshed with surface nets in a Web Worker, which gives it real inner layers for the cross-section. It is smooth rather than sculpted, and the glass reads as a clear rim over an ivory core. It is a Members template: unlock the prompt, live demo and zip free with your email.

Does the booking send appointments anywhere?

No. Booking validates the name, email, day and time, shows a confirmation with a CL- reference and offers a real .ics calendar file, and the slot then shows as taken. Nothing is posted to a server, so connect it to your own practice management or booking system before launch.

How does the payment calculator work?

The amount runs from £600 to £8,000 in steps of £50 over 6, 12, 24 or 36 months. It is 0% over 6 or 12 months and 9.9% APR representative over 24 or 36, amortised monthly, and it shows the monthly figure, interest, total and deposit. Change the terms to what your practice really offers.

What happens on phones, with reduced motion or without WebGL?

Phones get a lower render resolution (DPR capped at 1.5), a lighter mesh and the tooth centred above the copy. With reduced motion the 3D never starts: the hero shows the poster still and the scan chapter becomes a normal section with the cross-section image. Without WebGL2, if the CDN import fails or with ?nogl, the same fallback is used and every control still works.

How heavy is the page?

The HTML is about 92 KB and the images about 0.64 MB. three.js and its addons add about 0.7 MB compressed from jsDelivr. There is no video. Rendering stops when the stage is off screen or the tab is hidden.

Make it yours

This prompt rebuilds one exact page. If everyone ships it unchanged, the sites will look alike. Change these before you paste it; the structure and the working tools stay the same.

  1. Practice and place. Swap Clearline, Clifton and the four clinicians for your own clinic or a fictional one in your city. Keep six treatments, four people and four price groups so the grids stay balanced, and keep the address to street and district.
  2. Re-theme the signature object. Keep the SDF + surface-nets mesher and the two clipping wipes, but model a different subject: an incisor or canine (one root, a blade crown), an implant (a threaded post and abutment under a ceramic crown), or a whole lower arch of simplified teeth. The cap-trick section still works for any nested meshes.
  3. The scan look. Replace the cyan X-ray with a warm thermal ramp (black, amber, white) or a clinical green, and the disc rings with a laser line. Keep additive blending and the fresnel term.
  4. Palette. Replace --paper, --ink and --acc (for example pale stone #eceae4, graphite #1b1d1f, oxblood #6b2a2a). Retune the backdrop shader's hi/lo so the canvas matches the new paper after tone mapping, and keep --muted at 4.5:1 or better.
  5. Type pairing. Swap Newsreader + Schibsted Grotesk for another serif and grotesk pair (Source Serif 4 + Public Sans, or Instrument Serif + Manrope). Keep a mono for readouts and prices.
  6. Imagery. Regenerate the team, rooms and smile pairs in one lens, light and grade of your own; no text or logos in any picture. Make before/after pairs as edits of the same frame so nothing but the teeth changes.
  7. Tools. Change the smile check questions and rules to your services, the membership to your plan, and the finance terms to what you really offer.
  8. Voice. Keep headings plain and specific ("Prices, in full", "Book a visit online"); state real numbers next to every promise.

"Build exactly as specified, but with these changes: …"

Commissions

Want Clearline for your brand?

We build it for you: your story, your copy, motion made for your brand, live on your domain. Two projects a month, so each one gets the same care as this template.

  • A cinematic site made for your brand, not a reskin
  • Original motion and imagery made for your story
  • Fast on phones, accessible, yours to keep
Budget

We reply from hello@copytheprompt.design within two working days. Your details go to Kit, our email provider, only so we can reply. Privacy

More designs