All Projects → aykutkardas → drain-js

aykutkardas / drain-js

Licence: MIT license
Makes smooth transitions between two numbers.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to drain-js

miceditor
Miceditor: Transformice map editor
Stars: ✭ 14 (-68.89%)
Mutual labels:  svelte
svelte-quotes
A small app to demonstrate use of SvelteJS
Stars: ✭ 16 (-64.44%)
Mutual labels:  svelte
fsimilar
find/file similar
Stars: ✭ 13 (-71.11%)
Mutual labels:  utility
SHTransition
SHTransition is a simple library for viewcontroller transition animation in swift.
Stars: ✭ 35 (-22.22%)
Mutual labels:  transition
svelte-gantt
📆 Interactive JavaScript Gantt chart/resource booking component
Stars: ✭ 226 (+402.22%)
Mutual labels:  svelte
Octotab.crx
⚒ (I'm dead) A super tiny chrome extension making your Github news feed more organized.
Stars: ✭ 17 (-62.22%)
Mutual labels:  utility
sharyn
🌹 Sharyn – A collection of JavaScript / TypeScript packages that make your life easier and reduce your boilerplate code
Stars: ✭ 30 (-33.33%)
Mutual labels:  utility
DropPoint
Make drag-and-drop easier using DropPoint. Drag content without having to open side-by-side windows
Stars: ✭ 303 (+573.33%)
Mutual labels:  utility
cdetect
🔬 Detect which compiler and compiler version a Linux executable (in the ELF format) was compiled with
Stars: ✭ 23 (-48.89%)
Mutual labels:  utility
go-omxremote
browser based omxplayer remote
Stars: ✭ 16 (-64.44%)
Mutual labels:  svelte
JetBrainsRunner
A Krunner Plugin which allows you to open your recent projects
Stars: ✭ 31 (-31.11%)
Mutual labels:  utility
static-web-apps-gallery-code-samples
A community showcase of projects built with Azure Static Web Apps 🎉 Visit: https://microsoft.github.io/static-web-apps-gallery-code-samples/
Stars: ✭ 96 (+113.33%)
Mutual labels:  svelte
sapper-httpclient
An isomorphic http client for Sapper
Stars: ✭ 48 (+6.67%)
Mutual labels:  svelte
Tasks
Tasks is an application that optimizes computer performance. Tasks improves overall system performance, boot times, and a safer experience while using your computer.
Stars: ✭ 65 (+44.44%)
Mutual labels:  utility
create-svelte-site
Create a Svelte or Sapper site in a single command.
Stars: ✭ 16 (-64.44%)
Mutual labels:  svelte
avrocount
Count records in Avro files efficiently
Stars: ✭ 16 (-64.44%)
Mutual labels:  utility
kickstart
Ruby on Rails application templates
Stars: ✭ 61 (+35.56%)
Mutual labels:  svelte
aimscroll
🍹 Painless utility libary to handle scroll positions and methods in react
Stars: ✭ 12 (-73.33%)
Mutual labels:  utility
xcursorlocate
cursor location indicator for x11
Stars: ✭ 16 (-64.44%)
Mutual labels:  utility
its-ok-i-guess
🧐 Guess the game from the Steam review!
Stars: ✭ 41 (-8.89%)
Mutual labels:  svelte

drain-js

npm License

Preview

A callback based utility for making fluent number changes.

Install

npm install drain-js
yarn add drain-js

Usage

import drain from 'drain-js';

drain({ start: 3000, end: 2750, onInterval: console.log });

// Output
2906
2812
2803
...
2752
2751
2750

Preview

Parameters

drain({
  start: Number,
  end: Number,
  speed: Number,
  onInterval: Function,
  onComplete: Function,
});
Name Default Description
speed 100 An animation can be completed in about 10 to 20 steps. The speed (ms) value is the time set for each step.
start undefined The value at which the animation will start
end undefined The value at which the animation will end.
onInterval undefined The function that will run at each step until the animation is complete.
onComplete undefined The function to run when the animation is complete.

Demo List

Name Status Type URL
Demo Simple ✔️ Number Transition Link
Demo ✔️ CSS Animation & Number Transition Link
Demo with React ✔️ CSS Animation & Number Transition Link
Demo with Vue ✔️ CSS Animation & Number Transition Link
Demo with Svelte ✔️ CSS Animation & Number Transition Link
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].