1.0.2 • Published 10 years ago

detectcss v1.0.2

Weekly downloads
24
License
-
Repository
github
Last release
10 years ago

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
detectCSS.prefixed("transform"); //returns browser prefixed support, example: msTransition

Thanks

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