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.
Test the Fullscreen API: request fullscreen on a colored div, detect changes, and copy the JavaScript boilerplate.
See the View Transitions API in action. Cross‑fade and morph between two states. Copy the JavaScript starter code.
Demonstrate how to add custom headers and POST‑like functionality to EventSource using a polyfill. Code and example.
See the difference between clone and slice on inline boxes that break across lines. Useful for multi‑line headings.
Register a periodic background sync to fetch fresh data even when the tab is closed. Understand the API and limits.
Acquire and release locks across tabs. Prevent race conditions in IndexedDB or localStorage. Visual queue and lock state.
Toggle image‑rendering: auto, pixelated, crisp‑edges on a scaled image. Essential for pixel art display.
See how grid-auto-flow: row vs column changes item placement. Add and remove items to understand the algorithm. Visual.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Scroll down to see images load lazily. Code snippet provided. Learn how native loading='lazy' works.
Process audio faster than real‑time with OfflineAudioContext. Apply filters and export the result. Dev tool.
Request notification permission and create a push subscription. See the subscription object. Learn how web push works.
See the roving tabindex pattern in action. Use arrow keys to navigate a list. Copy the accessible JavaScript pattern.
See how align‑items: baseline works in grid to align different font sizes on the same baseline. Visual guide.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
Experiment with scroll‑state container queries to style elements when they are stuck, snapped, or overflowed. Experimental.
Test overscroll‑behavior: contain to prevent background scroll or pull‑to‑refresh. See the effect in a live demo.
Learn how to let content extend a few pixels beyond a clip boundary with overflow‑clip‑margin. Interactive playground.
Build a horizontal scroll‑snap container with configurable snap‑type and alignment. Perfect for image galleries.
Calculate large Fibonacci numbers in a Web Worker. See the UI remain responsive. Copy the pattern for your app.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
Toggle between light and dark mode for a demo page. See how to use the media query. Copy the pattern.
Resize the container and see the difference between repeat(auto‑fill, …) and auto‑fit. Understand responsive grid behavior.
See how a PWA can extend content into the title bar area on desktop. Customize the window controls overlay.
Configure how your PWA launches: focus existing or create new. Test with the launch_handler manifest field.
Create and dispatch custom events with detail. Listen on other elements. Understand pub/sub pattern in vanilla JS.
Use named grid lines instead of column numbers. See how they simplify placement. Visual, interactive learning.
Compare all CSS easing presets side by side on a bouncing ball. See which curve fits your UI animation.
Write a module and import it. See how browser handles module scripts. Learn modern JS structure.
Implement a dark/light theme toggle that respects prefers‑color‑scheme. Copy the complete JavaScript and CSS.
Set the inset property and see its logical shorthand equivalents. Copy the modern CSS for absolutely positioned elements.
Try all object‑fit values (fill, contain, cover, scale‑down) on an image. Adjust object‑position. Copy the CSS.
See the difference between :focus and :focus‑visible on interactive elements. Learn which to use for better UX.
See how <datalist> works across browsers. Test with many options. Copy the minimal markup. Simple native autocomplete.
Render the classic Stanford Bunny with a basic WebGPU pipeline. Rotate and zoom. Check if your browser supports WebGPU.
Apply a convolution filter (blur, sharpen) using a Web Worker. See the UI stay responsive while processing. Learn multithreading in the browser.
Add grid items beyond defined tracks and see how implicit rows/columns expand. Set sizes interactively. Master the grid.
Place multiple grid items into the same cells to create overlapping layouts. Learn the technique visually. Copy code.
Use the CSS Custom Highlight API to style arbitrary text ranges without modifying the DOM. See the future of find‑in‑page.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.
Toggle scroll‑behavior: smooth and click anchor links to see the scrolling animation. Implement modern UX.
Demonstrate how to yield heavy computation to user input using the isInputPending API. Keep UI responsive.
Create a custom element with named slots and see content projection in action. Learn Web Components basics.
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.
Position a popover relative to its anchor element with the new CSS anchor positioning. Adjust and copy the code.
See how scroll‑padding and scroll‑margin affect the position of elements when using anchor links or scroll‑snap. Visual.
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.
Test your device's built‑in biometric (Touch ID, Face ID, Windows Hello) using the Web Authentication API. Register and verify.
Control image‑orientation: from-image vs none. See how the browser interprets EXIF rotation. Fix portrait photos.
Use the new `commandfor` and `command` attributes to invoke actions on other elements without JavaScript. See the spec live.
Test how `content‑type: text/html` vs `content‑type: image/svg+xml` affects SVG rendering in the browser. Modern performance hint.
A textarea that expands in height as you type. See the implementation and copy the code. No library needed.
Send a test CSP violation report and see the ReportingObserver in action. Understand how monitoring works.
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.
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.