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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
sepia()

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報

その他の filter および backdrop-filter プロパティの値で使用できる <filter-function> 関数には、次のものがあります。