Background transition with gradient

1
As far as I know, css does not support transition of backgrounds with gradient, but supports transition from "flat" colors, for example (background-color: #fff)

How did this effect apply here, then? link

I was able to reproduce the effect by placing one of the colors of the transparent gradient, and a background of a color just behind, thus transposing the background color from the back, but the effect is not the same.

I tried to understand using the developer tools, without success.

    
asked by anonymous 12.06.2016 / 08:01

1 answer

1

Well, as you say, doing transition with gradient is not yet possible with CSS.

On this site what they have are different divs for each background, all with

header.hero div.backgrounds>div {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: none;
    opacity: 0;

and then with CSS classes activate one by one making transition from opacity .

Here you can see all the divs: link

Here you can see them changing: link

    
12.06.2016 / 11:32