An open API service indexing awesome lists of open source software.

https://github.com/slimcandy/isit-hdr-ready

Pure js NPM package to check hdr support in css (browser and hardware)
https://github.com/slimcandy/isit-hdr-ready

css4 hdr npm-package

Last synced: 12 days ago
JSON representation

Pure js NPM package to check hdr support in css (browser and hardware)

Awesome Lists containing this project

README

          

# HDR check

Pure js NPM package to check hdr support in css (browser and hardware)

[homepage](https://hdr.js.garden) | [github](https://github.com/slimcandy/isit-hdr-ready)

## Installation

Install it in a project

```bash
npm install isit-hdr-ready
```

## Basic usage

You can use it in your markup like this:

```html

✅ Browser support sRGB



```

Then check hdr support and change block, picture or js logic:

```js
import isitHDRReady from "isit-hdr-ready";

const hdrReadyMessage = document.querySelector(".hdr-ready-message");
if (isitHDRReady()) {
hdrReadyMessage.classList.remove("hidden");
}
```

## ⚠️ It checks only display-p3 support

## Contributors