cross-fade()Limited availability
The cross-fade() CSS function generates an image by mixing two images.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
✕Not supportedup to 155
Current: 155Edge
✕Not supportedup to 154
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
1–9.1Not supported
10+Supportedsince Sep 20, 2016
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–9Not supported
9.3+Supportedsince Mar 21, 2016
Current: 27How to use
Not supported in Chrome, Edge, Firefox, Chrome Android, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: cross-fade.
Feature detection
CSS · check before using
@supports (background-image: cross-fade(url("a.png") 50%, url("b.png"))) {
/* styles that use cross-fade */
}
/* or in JavaScript */
if (CSS.supports("background-image", "cross-fade(url("a.png") 50%, url("b.png"))")) {
// use it
}