# 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%;
}

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learncss.gitbook.io/cssadvand/that-khong-the-tin-duoc-su-dung-filter-brightness-0-invert-1-de-chuyen-mau-anh.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
