Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I turned websites into snow globes. Shake your phone to make it snow.

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…

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.

To 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.

The 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.

The 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

The useful part of an agent is the decision boundary

I wrote this as part of the Kiroween 2026 hackathon, where Wraith Kit is my Skeleton Crew entry. TODO Afterlife runs as a hosted demo; no live LLM provider or AWS deployment is claimed.

  • Wraith Kit framework for small event agents with two applications
  • "Todo Afterlife" identifies unclear code comments, proposes actions
  • "Notice Ghoul" scans notice pages for dates, compiles digests

401 Unauthorized: It's Almost Never the Model — It's Your Key

The error looks blunt: 401 Unauthorized. Most people read it as "I'm locked out" and start panicking, reinstalling, or blaming the model.

  • "401 Unauthorized" error often misinterpreted as model issue
  • Four common reasons: mistyped key, expired/revoked key, empty balance, address-key mismatch
  • Troubleshoot by checking base URL, key input, model name, and balance

VPS Price Comparison From Budget to Premium

RackVector Linux VPS starts from $1.36 per month. Windows VPS and dedicated CPU VDS start from $5.53 per month. Compare starting prices across 13 providers, from small Linux VPS plans to Windows…

  • RackVector Linux VPS starts at $1.36/month with 2GB RAM and 25GB NVMe SSD storage
  • InterServer Linux VPS begins at $3/month, offering 2GB CPU, 2GB RAM, and 40GB SSD storage
  • Contabo Cloud VPS starts at €4.40/month with 4 vCPUs, 8GB RAM, and 100GB SSD storage

5 things to fix before your Lovable or Bolt app gets real users

By Shubham Maurya , co-founder of BuildKodiq · 2026-11-30 Before real users sign up, fix five things in an app you built with Lovable, Bolt.new, Replit, v0 or Cursor.

  • Implement row-level security policies to control user access to data
  • Remove secret keys from browser and move to server-side functions
  • Use Stripe webhooks for secure payment processing and event verification

More from Sunday, 29 November 2026 →