0.6.0 • Published 6 years ago

unblur v0.6.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

unblur

NPM version Downloads Dependency status Dev Dependency status

A tool to fix blurry text on WebKit-based browsers. With a given interval, dirty-checks for any elements with on them translate3d and replaces it with translate.

Installation

npm install --save unblur

Usage

Basic usage:

import unblur from 'unblur'

// add this code somewhere around the entry point of your application
// this function can only be called once
unblur()

One may also use optional parameters:

unblur({
  // the root element which children to unblur (default is document.body)
  element: document.getElementById('foobar'),
  // the interval in ms at which to invoke the unblur function (default is 1000)
  interval: 5000,
  // skip the invocation if the predicate evaluates to true (default is undefined)
  skipIf: () => document.querySelectorAll('[style*="transition"').length > 0,
  // enable for all browsers rather than just desktop Webkit (default is false)
  allBrowsers: true,
  // on unblur
  onUnblur: true,
  // if blurring is skipped
  onSkip: true,
})
0.6.0

6 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.4.1

7 years ago

0.3.1

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago