Cinemagraphs for websites
A cinemagraph on a website can be a photo with a short, silent video of just the moving area on top, playing in a loop: that's how a magigraph is built. The photo shows like any image and the motion starts when the video arrives, so it weighs a few hundred kilobytes: 282 KB for the fjord on our home page.
Antonio Ordóñez · Abalun
Published
How it's built
Most of a cinemagraph doesn't move, so there's no need to send all of it as video. A magigraph is two files: the photo, as a JPEG, and an MP4 video only as big as the rectangle around the area that moves, placed on top. The code that puts them together is short: an image with its width, height and description, and a muted video that loops over it.
The video is H.264, the format every browser plays. It starts on its own, has no sound and no controls, and loops with no beginning or end. Email is different: there it goes as a GIF, as animated images for email explains, and cinemagraph vs GIF vs video compares the three.
What it weighs
These are the real files of the five examples on our home page, at 1280 px:
| Example | What moves | Photo | Video | Total |
|---|---|---|---|---|
| Fjord through the window | The water outside the window | 112 | 170 | 282 |
| Curtain in the breeze | The curtain | 77 | 308 | 385 |
| A tree in the wind | The branches and leaves | 86 | 351 | 437 |
| A beach by the hotel | The sea | 162 | 487 | 649 |
| Waves at sunrise | The waves on the sand | 100 | 554 | 654 |
The more that moves, the more it weighs. In the fjord, the water fills part of a window; on the hotel's beach, the moving area covers two thirds of the photo, and its video weighs 487 KB against the fjord's 170 KB.
When you export, you choose the weight. Light and Balanced compress the video just enough to stay under 500 KB and 800 KB, photo and video together; if it can't get there, the app tells you. Max quality has no limit. The Web size, 1280 px on the long side, is for most websites; High, 1920 px, is for full-screen hero images, with Pro, Studio or the Pack.
Two ways to put it on your site
Publish: we host it (Pro and Studio)
We host the photo and the video and give you a code you paste once. If you later prefer another attempt, publish it and the code you pasted shows the new one within a few minutes, without touching your site. You see the views each month: Pro includes 100,000 and Studio 1,000,000. If you pause it, run out of views or your plan ends, the code shows the still photo, so nothing breaks.
Download: you host it (every plan)
In Download, choose Your website and the Web embed format. You get the photo, the video and the code, and upload them to your site yourself. On the free plan they carry a watermark and a “Made with Magigraphy” link.
Either code goes anywhere you can paste HTML: a Custom HTML block in WordPress, an Embed element in Webflow, a Custom Liquid section or block in Shopify.
Speed, accessibility and fallbacks
- No layout jumps. The photo carries its width and height, so the browser reserves its space before it loads.
- If the video doesn't load, the photo stays. Nothing breaks.
- Reduced motion is respected. If visitors have asked their device to reduce motion, the code hides the video and they see the still photo.
- A description for everyone. The photo carries its alt text, which search engines and screen readers read. Describe what's in the photo; when you publish, you write it in Photo description (alt).
- No sound, no controls. The video is muted: it never surprises anyone with sound.
Where it works well
A cinemagraph works where there used to be a photo nobody looked at: the hero of a home page, the header of a section, the photo next to a booking button. It suits businesses whose photos already have something that moves: hotels and stays (a pool, the sea, a curtain), restaurants and food (steam off a plate or a coffee), shops (fabric in the wind), real estate (a fireplace, the view from a window) and travel (water, clouds, leaves). They're the sectors in our gallery.
Not everything needs to move. One detail is enough to make people look, and the message stays still and easy to read. To make one, see how to make a cinemagraph.
Questions
Will a cinemagraph slow down my website?
Not much. The photo is what shows first, like any image, and a short video of just the moving area plays on top. The fjord on our home page weighs 282 KB in total: 112 KB of photo and 170 KB of video; our five examples range from 282 to 654 KB.
What happens if the video doesn't play?
The photo stays, so nothing breaks. Visitors who have asked their device to reduce motion also see the still photo.
Can I change it once it's on my site?
Yes, if you publish it with Pro or Studio. Publish another attempt and the code you already pasted shows it within a few minutes.
Which website builders does it work with?
Any that lets you paste HTML: WordPress with a Custom HTML block, Webflow with an Embed element, Shopify with a Custom Liquid section or block, and any other site with an HTML, Embed or Code block.
Why not use a GIF on a website?
Because it weighs more and has fewer colours: a GIF holds at most 256 per frame. The tree on our home page weighs 437 KB on a website at 1280 px, and 685 KB as a GIF only 480 px wide.
Give your website a photo that moves.
Join the waitlistSee the galleryOpening soon. 2 magigraphs free when we open.