Lurker News
Staring at something for 30-90 seconds has been proven to improve & boost mental focus on subsequent tasks (from Andrew Huberman - https://youtu.be/CrtR12PBKb0?t=3367 ).

So I made something simple you can look at (and simultaneously meditate) for 1 minute to improve focus for your next task :) Let me know if it works for you

Comments (285) 103 threads

Show all comments

Showing thread 3 of 103

VladimirGolovin3 replies#
Very timely and helpful, thank you!

A suggestion: the pulse animation would look much better with ease-in / ease-out animation curves instead of the harsh linear curve it's currently using. EaseInOutSine from this cheat sheet would do fine: https://easings.net/

myfonj1 reply#
If you'd like to try those easings straight away, you can use this bare-bones rip-off in interactive sandbox [0]. Still basic: animation is symmetrical, so easing "in" has the same easing as "out", just reversed.

Under 2 kB total. HTML, mostly CSS and literally two lines of JS only for restarting the animation.
[0] https://myfonj.github.io/sandbox.html#%3C!doctype%20html%3E%...

KTibow1 reply#
Wait, why do you need anything other than CSS? Animations can have easing and loop indefinitely without JS.
myfonj1 reply#
Sure, you are right about infinite non-interactive CSS animations. And it's true there are simple checkbox:checked or whatever:active hacks for interactivity without JS. But for "click to (re)restart animation" there is no better cross-browser way I am aware of than toggling on some trigger attribute and toggling it off on animation end event, hence the JS.

Continue this thread — 1 reply

junetic#
Using tailwind. Animation should be slower and smoother now