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.
Acquire and release locks across tabs. Prevent race conditions in IndexedDB or localStorage. Visual queue and lock state.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.
See the View Transitions API in action. Crossâfade and morph between two states. Copy the JavaScript starter code.
Configure how your PWA launches: focus existing or create new. Test with the launch_handler manifest field.
Compare all CSS easing presets side by side on a bouncing ball. See which curve fits your UI animation.
Register a periodic background sync to fetch fresh data even when the tab is closed. Understand the API and limits.
Build a horizontal scrollâsnap container with configurable snapâtype and alignment. Perfect for image galleries.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
Process audio faster than realâtime with OfflineAudioContext. Apply filters and export the result. Dev tool.
Toggle scrollbarâgutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Drop files onto a zone and see a preview with name, size, and type. Copy the JavaScript pattern for your site.
Demonstrate how to add custom headers and POSTâlike functionality to EventSource using a polyfill. Code and example.
See how scrollâpadding and scrollâmargin affect the position of elements when using anchor links or scrollâsnap. Visual.
Apply a convolution filter (blur, sharpen) using a Web Worker. See the UI stay responsive while processing. Learn multithreading in the browser.
Render the classic Stanford Bunny with a basic WebGPU pipeline. Rotate and zoom. Check if your browser supports WebGPU.
Place multiple grid items into the same cells to create overlapping layouts. Learn the technique visually. Copy code.
Control imageâorientation: from-image vs none. See how the browser interprets EXIF rotation. Fix portrait photos.
See how overflow: visible, hidden, scroll, and auto behave with real content. Clone to test with your text.
See the difference between clone and slice on inline boxes that break across lines. Useful for multiâline headings.
Experiment with scrollâstate container queries to style elements when they are stuck, snapped, or overflowed. Experimental.
Hover over tiles to see every CSS cursor value in action. Quick visual reference for choosing the right UI feedback.
See how alignâitems: baseline works in grid to align different font sizes on the same baseline. Visual guide.
Try all objectâfit values (fill, contain, cover, scaleâdown) on an image. Adjust objectâposition. Copy the CSS.
Use CSS masks and fixed backgrounds to create a unique parallax reveal effect. Copy the code. No JavaScript.
Toggle imageârendering: auto, pixelated, crispâedges on a scaled image. Essential for pixel art display.
Request notification permission and create a push subscription. See the subscription object. Learn how web push works.
Make an element resizable horizontally, vertically, or both. See the handle and code. Useful for textareas.
Toggle between normal, nowrap, pre, preâwrap, and preâline to understand how whitespace is handled. Live text example.
See the difference between :focus and :focusâvisible on interactive elements. Learn which to use for better UX.
See the roving tabindex pattern in action. Use arrow keys to navigate a list. Copy the accessible JavaScript pattern.
See how a PWA can extend content into the title bar area on desktop. Customize the window controls overlay.
Write a module and import it. See how browser handles module scripts. Learn modern JS structure.
See how grid-auto-flow: row vs column changes item placement. Add and remove items to understand the algorithm. Visual.
Test overscrollâbehavior: contain to prevent background scroll or pullâtoârefresh. See the effect in a live demo.
Use anchor positioning to perfectly center a popover relative to its anchor. No JavaScript. See the modern approach.
See how WeakMap and WeakSet work. Add objects as keys and watch references. Understand memoryâefficient collections.
Create and dispatch custom events with detail. Listen on other elements. Understand pub/sub pattern in vanilla JS.
Toggle scrollâbehavior: smooth and click anchor links to see the scrolling animation. Implement modern UX.
Resize the container and see the difference between repeat(autoâfill, âŠ) and autoâfit. Understand responsive grid behavior.
Scroll down to see images load lazily. Code snippet provided. Learn how native loading='lazy' works.
Learn how to let content extend a few pixels beyond a clip boundary with overflowâclipâmargin. Interactive playground.
Send a test CSP violation report and see the ReportingObserver in action. Understand how monitoring works.
Calculate large Fibonacci numbers in a Web Worker. See the UI remain responsive. Copy the pattern for your app.
Toggle between light and dark mode for a demo page. See how to use the media query. Copy the pattern.
See every HTML input type in one page. Check browser support and styling. Copy sample markup. Quick frontend reference.
Add grid items beyond defined tracks and see how implicit rows/columns expand. Set sizes interactively. Master the grid.
Test your device's builtâin biometric (Touch ID, Face ID, Windows Hello) using the Web Authentication API. Register and verify.
Set up a Shared Worker that shares state across multiple browser tabs. Counter and messaging demo. Advanced web.
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.
Create a custom element with named slots and see content projection in action. Learn Web Components basics.
Toggle between full and reduced motion on a live animated page. See how to design for vestibular disorders. Educational.
Test the upcoming <selectlist> element for a fully customizable, stylable select dropdown. Experimental browser feature.
Test how `contentâtype: text/html` vs `contentâtype: image/svg+xml` affects SVG rendering in the browser. Modern performance hint.
Use the <template> tag to hold hidden HTML that is cloned and injected by JavaScript. Common pattern.
Compare visibility: hidden vs display: none. See how each affects layout and event listeners. Inline code.
See how <datalist> works across browsers. Test with many options. Copy the minimal markup. Simple native autocomplete.