Single HTML element + CSS only

  1. Inhale for 4 seconds
  2. Hold for 4 seconds
  3. Exhale for 4 seconds
  4. Hold for 4 seconds

And repeat

Inspired by: https://quietkit.com/box-breathing/

Note: The current Safari version has a bugged linear() implementation that has been fixed in the upcoming version.

  • @[email protected]
    link
    fedilink
    55 months ago

    This is cool, but it bothers me that the inhale cycle doesn’t end with completely filling the circle with blue. I feel unfulfilled, like when the DVD player screensaver doesn’t hit neatly into the corner of the screen when it totally looks like it’s going to

    • @spartanatreyuOP
      link
      3
      edit-2
      5 months ago

      Lol, well I could change it, but it was based on the gif at https://quietkit.com/box-breathing/

      I think it’s because you’re not supposed to expand your lungs so much that they feel like they’re going to burst.

      But if you scroll to the bottom of the css and look at line 69, you can change transform: scale(90%); to transform: scale(100%); to see if you like it better.