sepia()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2016.
sepia()
は CSS の関数で、入力画像をセピア色に、より暖かい、より黄色/茶色がかったの表現に変換します。結果は <filter-function>
です。
試してみましょう
構文
css
sepia(amount)
引数
amount
-
変換の度合いで、
<number>
または<percentage>
で指定します。100%
の値では完全にセピア色になり、0%
の値では入力が変更されないままになります。0%
と100%
の間の値は、効果の割合です。補間の初期値は0
です。
例
sepia() の正しい値の例
css
sepia(0) /* 効果なし */
sepia(.65) /* 65% セピア色 */
sepia(100%) /* 完全にセピア色 */
仕様書
Specification |
---|
Filter Effects Module Level 1 # funcdef-filter-sepia |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
sepia() |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
その他の filter
および backdrop-filter
プロパティの値で使用できる <filter-function>
関数には、次のものがあります。