ds-utils
v1.1.1
Published
Digital Surgeons utility modules
Readme
DS Utils
Digital Surgeons utility modules
Installation
$ npm install ds-utilsExample Usage
var Utils = {
rangeMap: require('ds-utils/range-map'),
hexMix: require('ds-utils/hex-mix')
};Module List
range-map- map a value from one range to anotherhex-mix- return hex value at % point between two colorsset-timeout-frame- run callback in request animation frame after setTimeoutset-interval-frame- run callback in request animation frame every setIntervaldisplay-block- Fade DOM elements in / out. Set display property first followed by opacity after short delay. Ensure elements have transition set in CSS.
