Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Draggable Canvas

Draggable Canvas

Six draggable Canvas 2D windows that each show a different slice of the same looping video, thrown around the screen with GSAP Draggable and Inertia.

GSAP
DemoDemoDemo

Tune the Real Props

Background Color
Canvas Border Color

Overview

Draggable Canvas splits one looping video across six floating windows that visitors can drag and throw.

Use it when exploration is the point: a project surface, product visual, or branded scene that should respond to touch and drag without turning navigation into a toy.

The production risk is discoverability. Drag can enhance exploration, but it cannot be the only path to understand content or reach controls.


Usage Code

page
1import DraggableCanvas from '@/components/effects/draggable-canvas'2 3const page = () => {4  return (5    <>6    <DraggableCanvas/>7    </>8  )9}10 11export default page

Example Production Use Case

A film production company can use Draggable Canvas on its showreel page. Six framed windows each show a different crop of the same reel, and visitors can drag and throw them around the screen to piece the footage together.

The outcome is tactile exploration. The reel feels handled rather than just played, while the play button, project list, and contact link stay in normal page controls so drag is never the only path.


Best Used For

  • Interactive showcases where drag adds exploration but does not gate content.
  • Portfolio surfaces where movement helps visitors feel the work before opening it.
  • Hero scenes that need tactile behavior with a clear touch fallback.

Not For

Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.


Performance Budget

Each of the six windows redraws its slice of the video every frame on a Canvas 2D backing store sized to the full devicePixelRatio. The draw loops already pause when a window is offscreen or the tab is hidden. The main cost is the video itself, so keep the source file short and compressed.


Accessibility and Mobile

The canvases are aria-hidden and the windows have no keyboard control, so keep meaningful content in HTML outside the effect. The windows are sized in vw, so they are small on phones; the built-in caption tells smaller screens it is best on desktop. With reduced motion, a released window stops where you let go and does not scale up on press. If the video fails to load, no windows render.


Common Mistakes

  • Making drag the only way to discover content or controls.
  • Letting the canvas sit above focusable links and buttons.
  • Forgetting that touch users need visible controls or a simplified interaction path.

Changelog

Added a prefers-reduced-motion notice on the left side, informing users the drag/inertia animation may not honor their reduced-motion preference
Initial release

API Reference

PropTypeDefaultDescription
frictionnumber0.12Inertia friction after drag release.
scaleOnDragnumber1.04Scale applied while dragging.
backgroundColorstring#000000Canvas background color.
canvasBorderColorstring#71717aBorder color for each draggable canvas window.
roundednumber0Corner radius for each draggable canvas window.

Questions, Answered.

What performance budget should Draggable Canvas use on mobile and desktop?

All six windows redraw their slice of the video every frame while they are on screen, not only during a drag, at the full device pixel ratio. There is no DPR prop, so the practical levers are a smaller, well-compressed video and fewer windows if you edit the source. Test sustained dragging on mobile, where heat and battery show up fast.

What fallback should replace Draggable Canvas when the video fails to load?

If the video errors, the windows never render and only the background colour and caption remain, so provide a static image of the composition yourself. Ensure nothing important was only reachable by dragging. Any HTML you place around the effect remains intact.

How should Draggable Canvas pause when offscreen or in a hidden tab?

It already does this for drawing: each window's redraw loop stops when that window is offscreen or the tab is hidden, and resumes on return. The GSAP Draggable instances stay attached until the component unmounts, when they are killed.

Which content should stay outside the Draggable Canvas canvas?

Any real content or controls labels, descriptions, links that stay in the DOM, and the drag should enhance exploration, not gate information. Provide a non-drag path to the same material for keyboard and assistive-tech users. The canvas is the playground, not the content store.

When should I choose a static image instead of Draggable Canvas?

Choose a static visual when exploration adds nothing, when the audience is mostly touch, or when the interactivity risks more frustration than delight. If users won't actually benefit from moving the scene, the cost isn't justified. Reserve drag for showcases where exploring is the point.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Numeric Tunnel Loader
GSAP @react-three/fiber@react-three/drei

Numeric Tunnel Loader

Loaders

Interactive List Preview
GSAP

Interactive List Preview

Components

Pixelated Image Effect
SVG Filter

Pixelated Image Effect

Cursor

Overflow Text Reveal
Pro
GSAP

Overflow Text Reveal

Text

Zoom Slider
GSAP

Zoom Slider

Carousels