> For the complete documentation index, see [llms.txt](https://learncss.gitbook.io/cssadvand/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learncss.gitbook.io/cssadvand/that-khong-the-tin-duoc-su-dung-filter-brightness-0-invert-1-de-chuyen-mau-anh.md).

# Thật không thể tin được sử dụng filter: brightness(0) invert(1); để chuyển màu ảnh 🤣

### Example 1

<figure><img src="/files/XbXFTqEjrsEcn2FgDsyc" alt=""><figcaption></figcaption></figure>

```
img {
  filter: brightness(0) invert(1);
}
```

**Tool Hex Color To CSS Filter Converter**

[**https://isotropic.co/tool/hex-color-to-css-filter/**](https://isotropic.co/tool/hex-color-to-css-filter/)<br>

<figure><img src="/files/q6ZFwzHazzsxi5JetnJD" alt=""><figcaption></figcaption></figure>

### Example 2: HOW TO ANIMATE AN IMAGE USING - HTML & CSS

<figure><img src="/files/Gx7PvxVCLTPnK9faUCeg" alt=""><figcaption></figcaption></figure>

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="1.css">
</head>
<body>
  <div class="img-box">
    <img src="contact.png" alt="contact.png">
  </div>
</body>
</html>
```

```css
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  align-content: center;
  width: 100%;
  min-height: 100vh;
  background: #111;
  animation: animate 1s linear infinite;
}
@keyframes animate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
.img-box {
  width: 500px;
  height: 450px;
}
.img-box img {
  width: 100%;
  height: 100%;
}

```
