{
  "id": 22635538,
  "title": "I turned websites into snow globes. Shake your phone to make it snow.",
  "url": "https://urgent.news/2026/11/29/i-turned-websites-into-snow-globes-shake-your-phone-to-make-it-snow",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T18:36:25.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/frantisek_gejdos_052e39f7/i-turned-websites-into-snow-globes-shake-your-phone-to-make-it-snow-4d4c"
  },
  "original_language": null,
  "account": "A developer named František created animated effects for websites using his technology at Fluri. One of his creations is called \"Snow Globe,\" which is available for free under the MIT license on npm. This innovative feature turns websites into snow globes, allowing users to shake their phone to make it snow.\n\nTo accomplish this, the Snow Globe leverages phone sensors, the iPhone's permission tap, and fake water physics. When a phone is at rest, it registers an acceleration of approximately 9.8 meters per second squared on one of its axes, which represents the force of gravity. A sudden change in these readings, known as \"jerk,\" indicates a real shake rather than just a hand moving the phone. For a shake to be detected, the jerk must be greater than about 13 meters per second squared.\n\nThe Snow Globe begins by requesting permission to access the phone's motion events. On iPhones, this permission process requires a tap on the screen. Once permission is granted, the Snow Globe listens for motion events and measures the jerk to determine if the phone has been shaken. If the jerk is significant enough, the Snow Globe triggers the snow effect by applying a certain level of intensity based on the shake's strength.\n\nThe snow particles in the Snow Globe are designed to mimic the behavior of real snowflakes falling through a liquid. They ease towards a target velocity, simulating the steady descent of snowflakes through water. An energy value is added to create a swirling current, causing the snowflakes to dance and swirl. This energy fades away over time, allowing the snow to settle gently back onto the website's content after a few seconds.",
  "summary": "Open this page on your phone and give it a shake. The snow swirls up, drifts back down as if through water, and settles on the headings and buttons. Tilt the phone and the snow slides to the side. I'm František, and I make animated effects for websites at Fluri . The Snow Globe is free on npm under MIT. Here's how it works: phone sensors, the iPhone permission tap, fake water physics and snow…",
  "summary_source": "publisher",
  "key_points": [
    "Developer František created \"Snow Globe\" for websites",
    "Snow Globe uses phone sensors and motion events",
    "Shaking phone triggers snow effect on websites"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}