NoSleep.js
easings.net
NoSleep.js | easings.net | |
---|---|---|
8 | 111 | |
2,160 | 7,698 | |
- | - | |
0.0 | 4.2 | |
about 1 year ago | 3 months ago | |
JavaScript | CSS | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
NoSleep.js
-
Show HN: Improve cognitive focus in 1 minute
Awesome project! Reminds me of donothingfor2minutes.com from Calm, but with a different end goal of focus instead of calm.
Regarding mobile phones going to sleep, [Wake lock](https://developer.mozilla.org/en-US/docs/Web/API/WakeLock) might help (make sure to request within the context of the user hitting "start"). [Unfortunately on older mobile browsers](https://caniuse.com/wake-lock), the best workaround I found was using this [NoSleep library](https://github.com/richtr/NoSleep.js).
Source: ran into this same issue when building https://www.phonefreehour.com
- Show HN: A simple web app to combat phone addiction
- Can you go an hour without touching your phone?
-
Chrome 110 will automatically discard background tabs
https://github.com/richtr/NoSleep.js/
I wonder if something like this will get "extended" to work for desktop browsers now if this needs to become more popular?
I think something simple like looping an empty audio or video file will suffice. Not that I agree with that from a "hijack the user's browser without their consent" perspective. Just spitballing workarounds.
- Show HN: Sleepblocker, prevent your device from falling asleep
-
Show HN: Prevent your computer sleeping with just a webpage
As Firefox (& I think Safari) does not support the ScreenWakeLock API are you using NoSleep.js? https://github.com/richtr/NoSleep.js
This library implements a hack and plays a very tiny video in a loop. This should even work on mobile devices and (according to my personal&tiny tests) is not that inefficient as it sounds :)
- Keeping computer awake while it compiles code
-
Teleport
Integrated WakeLock API to prevents device screens from dimming or locking during file share to get a stable transfer speed.
easings.net
- Easings
-
2024 Cheat Sheet Collection
Easings: When working with animations and transitions, Easings provides a comprehensive cheat sheet for various easing functions, allowing developers to visualize and choose the perfect timing curve for their projects.
-
My favourite animation trick: exponential smoothing
Something like this: https://easings.net/#easeOutExpo
- Show HN: Tweening web visualisation, in Rust – (WASM)
-
Show HN: Improve cognitive focus in 1 minute
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/
- Easing Functions Cheat Sheet
-
How to learn to create non linear function for my game
One I like to reference is this easing functions cheatsheet. Its aimed at programming animations, but a lot of the principles apply to your needs.
-
Easings for keyframes
I feel like BB should definitely have easings (specifically the ones on easings.net) for keyframes. Any thoughts?
-
Interactive tutorial building polished UI in JavaScript
> I wasn’t sure what type of math function would work for this
Usually people use "easing functions", which are convenient since they typically have a range and image both in [0.0 .. 1.0] [1] (although sometimes the range is slightly above 1 or below 0 to produce some "effect"). CSS has a cubic-bezier function [2] that can be used to replicate pretty closely all sorts of easing functions.
Functions that look like an "S" when plotted are called "sigmoids", a popular one used in graphics applications is called "Smoothstep" [3].
--
1: https://easings.net
2: https://developer.mozilla.org/en-US/docs/Web/CSS/easing-func...
3: https://en.wikipedia.org/wiki/Smoothstep
What are some alternatives?
keep-presence - Keeps your computer awake by moving the mouse or pressing a key when you step away.
humane-js - A simple, modern, browser notification system
Porcupine - On-device wake word detection powered by deep learning
cs-tween - Easing functions in C#. And coroutines for using them with Unity.
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
libGDX - Desktop/Android/HTML5/iOS Java game development framework
quasar-framework - Quasar Framework - Build high-performance VueJS user interfaces in record time [Moved to: https://github.com/quasarframework/quasar]
Most.js - Ultra-high performance reactive programming
Compass - Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
ParrelSync - (Unity3D) Test multiplayer without building
flux - A fast, lightweight tweening library for Lua
odometer