TwoโValue Display Syntax Playground - Online Outer & Inner
Explore the new twoโvalue display syntax like `display: block flex`. See what each inner/outer pair does visually.
UD5 Toolkit
@vertex / @fragment attributes for entry points, @location() for I/O, @group() and @binding() for resource bindings, and var<uniform> for uniform buffers. WGSL compiles to SPIR-V internally, making it portable across GPU vendors.
time (in seconds) and resolution (canvas pixel size). Toggle the pause button to stop/resume animation. Copy your shader code with the copy button for use in your own projects.
time: f32 โ Elapsed time in seconds (updates every frame when animation is enabled)resolution: vec2<f32> โ Canvas width and height in pixels@location(0) vec4<f32> representing the RGBA color output.
vec3 where vec4 is expected), missing entry point attributes (@fragment), incorrect binding declarations, and syntax errors like missing semicolons. The error panel below the toolbar will display the exact line number and description of any compilation issues. Ensure your function signature matches the expected format and all types are explicitly declared. WGSL is strictly typed โ implicit conversions are not allowed.
@compute entry points), a different pipeline setup is required with dispatch commands and storage buffers. However, many visual algorithms that work in compute shaders can be adapted to fragment shaders by working with UV coordinates and the uniform time value. For a dedicated compute shader playground, additional buffer management and readback capabilities would be needed.
Explore the new twoโvalue display syntax like `display: block flex`. See what each inner/outer pair does visually.
Write a fragment shader and see the result rendered on a fullโscreen quad. For WebGL learners. Local compilation.
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Write CSS like `oklch(from red l c h)` to modify colors dynamically. Preview the output and copy the code.
Chain multiple CSS filter functions and see the result on an image. Copy the filter string. No upload.
Change all alignment and justification values and see the flex items move. Indispensable for learning Flexbox.
Drag a positioned box and see the top/right/bottom/left values change. Understand containing blocks. Visual.
Type text and instantly see it rendered with textโtransform: uppercase, lowercase, capitalize, and fullโwidth. Copy CSS.
Set perspective and rotate children in 3D space. See the effect of perspectiveโorigin. Copy the CSS. Learn 3D transforms.
Click on a box to set the transformโorigin point and see how rotations and scales change. Copy the CSS.
Drag items into grid cells and see the resulting gridโarea or lineโbased placement code. Learn how autoโplacement and spanning work.
Drag to resize a box and see the Resize Observer callback fire. Get contentRect and borderBoxSize. Learn the API.
Render the classic Stanford Bunny with a basic WebGPU pipeline. Rotate and zoom. Check if your browser supports WebGPU.
Write CSS like `oklch(from red l c h)` to modify colors. Preview the output and copy. Modern color manipulation.
Write JavaScript using element.animate() and see the result in a live preview. Compare with CSS keyframes. Debugger included.
Write compound selectors and instantly see which elements they match on a test page. Master complex CSS logic.
See every touch point with coordinates, radius, and force on your mobile device. Debug gestures with live overlay.
Measure your browser's GPU compute power using a simple WebGPU matrix multiplication. See raw FLOPS and compare with peers. Fully clientโside.
Type directly into a contenteditable div with realโtime CSS filters, shadows, and colors. Download as HTML. Fun demo.
Create an animation that advances with scroll using animationโtimeline: scroll(). See the visual timeline editor. Modern CSS.
Input any JavaScript object and see if structuredClone can deepโcopy it. Compare with JSON.parse/stringify. Learn transferables.
Write a pattern and test it against URLs instantly. See which groups match. Learn the modern alternative to regex for routing. Works entirely in the browser.
Write CSS with native nesting (like SCSS) and see the browserโs native parsing. Validator and live output.
Pick two images or colors and apply all 16 CSS mixโblendโmode values live. See and copy the right CSS for your design.
Experiment with the CSS color-mix() function. Pick two colors and mix them in different color spaces (srgb, oklch). Copy the CSS.
Interactively add and adjust multiple box shadows on a sample element. Drag sliders for offset, blur, spread, and color. Copy the clean CSS code instantly.
Drag points to create a custom clipโpath shape. See the CSS value update live. For creating nonโrectangular elements.
Experiment with CSS Grid properties visually. Add rows, columns, and areas. See the grid in action and copy the code.
Type any condition and see the result of the ternary operator. Understand truthy/falsy values. Quick learning tool.
Visually experiment with Flexbox container and item properties. See the layout update in real time and copy the CSS. Learn by doing, fully interactive.