From 6232d4345a17695c081df53d54c368af32a281e4 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 6 Jan 2022 22:41:00 +0900 Subject: 2021/08/13 時点の英語版に同期 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/filter-function/invert()/index.md | 84 ++++++++++------------ 1 file changed, 38 insertions(+), 46 deletions(-) (limited to 'files/ja') diff --git a/files/ja/web/css/filter-function/invert()/index.md b/files/ja/web/css/filter-function/invert()/index.md index ac644cb147..a5550ebf12 100644 --- a/files/ja/web/css/filter-function/invert()/index.md +++ b/files/ja/web/css/filter-function/invert()/index.md @@ -3,65 +3,57 @@ title: invert() slug: Web/CSS/filter-function/invert() tags: - CSS - - CSS Function - - Filter Effects - - Function - - Reference + - CSS 関数 + - フィルター効果 + - 関数 + - リファレンス +browser-compat: css.types.filter-function.invert translation_of: Web/CSS/filter-function/invert() --- -
{{cssref}}
+{{CSSRef}} -

invert()CSS の関数で、入力画像の色サンプルを反転します。結果は {{cssxref("<filter-function>")}} です。

+**`invert()`** は [CSS](/ja/docs/Web/CSS) の[関数](/ja/docs/Web/CSS/CSS_Functions)で、入力画像の色サンプルを反転します。結果は {{cssxref("<filter-function>")}} です。 -
{{EmbedInteractiveExample("pages/css/function-invert.html")}}
+{{EmbedInteractiveExample("pages/css/function-invert.html")}} - +## 構文 -

構文

+```css +invert(amount) +``` -
invert(amount)
+### 引数 -

引数

+- `amount` + - : 変換の度合いで、 {{cssxref("<number>")}} または {{cssxref("<percentage>")}} で指定します。 `100%` の値では完全に反転され、 `0%` の値では入力が変更されないままになります。 `0%` と `100%` の間の値は、効果の割合です。補間時の欠損値は `0` です。 -
-
amount
-
変換の度合いで、 {{cssxref("<number>")}} または {{cssxref("<percentage>")}} で指定します。 100% の値では完全に反転され、 0% の値では入力が変更されないままになります。 0%100% の間の値は、効果の割合です。補間時の欠損値は 0 です。
-
+## 例 -

+### invert() の正しい値の例 -
invert(0)     /* 効果なし */
+```css
+invert(0)     /* 効果なし */
 invert(.6)    /* 60% 反転 */
-invert(100%)  /* 完全に反転 */
+invert(100%) /* 完全に反転 */ +``` -

仕様書

+## 仕様書 - - - - - - - - - - - - - -
仕様書状態
{{SpecName('Filters 1.0', '#funcdef-filter-invert', 'invert()')}}{{Spec2('Filters 1.0')}}
+{{Specifications}} -

関連情報

+## ブラウザーの互換性 - +{{Compat}} + +## 関連情報 + +- {{cssxref("<filter-function>")}} +- {{cssxref("filter-function/blur()", "blur()")}} +- {{cssxref("filter-function/brightness()", "brightness()")}} +- {{cssxref("filter-function/contrast()", "contrast()")}} +- {{cssxref("filter-function/drop-shadow()", "drop-shadow()")}} +- {{cssxref("filter-function/grayscale()", "grayscale()")}} +- {{cssxref("filter-function/hue-rotate()", "hue-rotate()")}} +- {{cssxref("filter-function/opacity()", "opacity()")}} +- {{cssxref("filter-function/saturate()", "saturate()")}} +- {{cssxref("filter-function/sepia()", "sepia()")}} -- cgit v1.2.3-54-g00ecf