detectcss

1.0.2 • Public • Published

detectCSS

Simple module to detect browser CSS feature support, it's a simple alternative to modernizr to quickly test browser support for CSS properties.

Install

$ npm install detectcss

Usage

detectCSS is intented to use in a CommonJS module environment, check out Browserify

var detectcss = require('detectcss');

//detect if browser supports CSS transforms
detectcss.feature("transform"); //returns true if browser supports CSS transforms

//return CSS style with browser prefix
detectcss.prefixed("transform"); //returns browser prefixed support, example: msTransition

Thanks

http://stackoverflow.com/questions/7264899/detect-css-transitions-using-javascript-and-without-modernizr

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    3
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i detectcss

Weekly Downloads

5

Version

1.0.2

License

none

Last publish

Collaborators

  • yawetse