Elephant Toothpaste Demo Calculator - Online Reaction Ratios
Find safe mixing ratios for the classic elephant toothpaste demonstration. Volume adjustments for different container sizes.
UD5 Toolkit
Find safe mixing ratios for the classic elephant toothpaste demonstration. Volume adjustments for different container sizes.
See how grid-auto-flow: row vs column changes item placement. Add and remove items to understand the algorithm. Visual.
See the View Transitions API in action. Cross‑fade and morph between two states. Copy the JavaScript starter code.
Acquire and release locks across tabs. Prevent race conditions in IndexedDB or localStorage. Visual queue and lock state.
Calculate large Fibonacci numbers in a Web Worker. See the UI remain responsive. Copy the pattern for your app.
Scroll down to see images load lazily. Code snippet provided. Learn how native loading='lazy' works.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Test the Fullscreen API: request fullscreen on a colored div, detect changes, and copy the JavaScript boilerplate.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
Add grid items beyond defined tracks and see how implicit rows/columns expand. Set sizes interactively. Master the grid.
Resize the container and see the difference between repeat(auto‑fill, …) and auto‑fit. Understand responsive grid behavior.
Test overscroll‑behavior: contain to prevent background scroll or pull‑to‑refresh. See the effect in a live demo.
Register a periodic background sync to fetch fresh data even when the tab is closed. Understand the API and limits.
Configure how your PWA launches: focus existing or create new. Test with the launch_handler manifest field.
Toggle image‑rendering: auto, pixelated, crisp‑edges on a scaled image. Essential for pixel art display.
Press Ctrl+V to paste an image from your clipboard into the page. See dimensions and download. Simple utility.
Demonstrate how to add custom headers and POST‑like functionality to EventSource using a polyfill. Code and example.
Toggle between light and dark mode for a demo page. See how to use the media query. Copy the pattern.
See the roving tabindex pattern in action. Use arrow keys to navigate a list. Copy the accessible JavaScript pattern.
Render the classic Stanford Bunny with a basic WebGPU pipeline. Rotate and zoom. Check if your browser supports WebGPU.
See how align‑items: baseline works in grid to align different font sizes on the same baseline. Visual guide.
See every HTML input type in one page. Check browser support and styling. Copy sample markup. Quick frontend reference.
Run a CPU‑heavy calculation (e.g., prime numbers) in a Web Worker and see the UI stay responsive. Code snippet provided.
Place multiple grid items into the same cells to create overlapping layouts. Learn the technique visually. Copy code.
Test your device's built‑in biometric (Touch ID, Face ID, Windows Hello) using the Web Authentication API. Register and verify.
Use the new `commandfor` and `command` attributes to invoke actions on other elements without JavaScript. See the spec live.
Learn how to let content extend a few pixels beyond a clip boundary with overflow‑clip‑margin. Interactive playground.
A textarea that expands in height as you type. See the implementation and copy the code. No library needed.
Set up a Shared Worker that shares state across multiple browser tabs. Counter and messaging demo. Advanced web.
See how WeakMap and WeakSet work. Add objects as keys and watch references. Understand memory‑efficient collections.
Compare all CSS easing presets side by side on a bouncing ball. See which curve fits your UI animation.
Process audio faster than real‑time with OfflineAudioContext. Apply filters and export the result. Dev tool.
Write a module and import it. See how browser handles module scripts. Learn modern JS structure.
Reset native styling on form elements with appearance: none. See before and after. Essential for custom forms.
Toggle scroll‑behavior: smooth and click anchor links to see the scrolling animation. Implement modern UX.
Implement a dark/light theme toggle that respects prefers‑color‑scheme. Copy the complete JavaScript and CSS.
Demonstrate how to yield heavy computation to user input using the isInputPending API. Keep UI responsive.
Drop files onto a zone and see a preview with name, size, and type. Copy the JavaScript pattern for your site.
Use the <template> tag to hold hidden HTML that is cloned and injected by JavaScript. Common pattern.
Create a custom element with named slots and see content projection in action. Learn Web Components basics.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
See how overflow: visible, hidden, scroll, and auto behave with real content. Clone to test with your text.
Make an element resizable horizontally, vertically, or both. See the handle and code. Useful for textareas.
See the difference between clone and slice on inline boxes that break across lines. Useful for multi‑line headings.
See the difference between :focus and :focus‑visible on interactive elements. Learn which to use for better UX.
Use CSS masks and fixed backgrounds to create a unique parallax reveal effect. Copy the code. No JavaScript.
See how <datalist> works across browsers. Test with many options. Copy the minimal markup. Simple native autocomplete.
See how scroll‑padding and scroll‑margin affect the position of elements when using anchor links or scroll‑snap. Visual.
Toggle between full and reduced motion on a live animated page. See how to design for vestibular disorders. Educational.
Apply a convolution filter (blur, sharpen) using a Web Worker. See the UI stay responsive while processing. Learn multithreading in the browser.
Use anchor positioning to perfectly center a popover relative to its anchor. No JavaScript. See the modern approach.
Open a modal and see how focus is trapped and restored. Copy the lightweight focus‑trap code. Accessible pattern.
Use the CSS Custom Highlight API to style arbitrary text ranges without modifying the DOM. See the future of find‑in‑page.
Test how `content‑type: text/html` vs `content‑type: image/svg+xml` affects SVG rendering in the browser. Modern performance hint.
Create and dispatch custom events with detail. Listen on other elements. Understand pub/sub pattern in vanilla JS.
Select text and see the Selection object properties. Create ranges programmatically. Understand how rich‑text editors work.
Overlay colored blocks and images and apply all mix‑blend‑mode values. Understand how each mode works live.
Build a horizontal scroll‑snap container with configurable snap‑type and alignment. Perfect for image galleries.
Use named grid lines instead of column numbers. See how they simplify placement. Visual, interactive learning.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.