modernizr

utility polyfill responsive

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser. This allows developers to apply conditional CSS styles or scripts based on the support of the browser.

Latest Ver
Homepage
Github
0
25,723
📢 Modernizr facilitates web development by detecting browser compatibility and providing appropriate features.
License: MIT

Sample Code

⚠️ Some code, including import statements, may not run properly on jsFiddle. If it fails to execute, please copy the code and try it in your own environment.
📄 HTML
<div id='example'>
  <p>Hello</p>
</div>

🧩 External JS
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/3.11.4/modernizr.min.js"></script>

⚙️ JavaScript
if (Modernizr.canvas) {
  document.getElementById('example').innerHTML += '<p>Canvas is supported</p>';
} else {
  document.getElementById('example').innerHTML += '<p>Canvas is not supported</p>';
}
⚡ Top Tools for Developers
Text Compare

Text Comparison

Easily spot the differences between two texts.

Favicon Generator

Favicon Generator

Quickly and easily generate favicons.

Lorem Ipsum Generator

Lorem Ipsum Generator

Generate placeholder text for your designs.

Character Counter

Character Counter

Check character and word count in real time.

SRT ↔ SMI

SRT ↔ SMI Converter

Easily convert between subtitle formats.

Text Extract(OCR)

Image Text Extractor

Automatically extract text from images.