Skip to content
Simple module to detect browser CSS feature support
JavaScript
Find file
Latest commit 0e92b73 @yawetse updated info for npm
Failed to load latest commit information.
lib updated modules for npm
test node module
.gitignore node module
.jshintrc node module
.npmignore node module
AUTHORS node module
Changelog node module
Gruntfile.js updated modules for npm
README.md Update README.md
index.js node module
package.json updated info for npm

README.md

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

Something went wrong with that request. Please try again.