The question is, how can you make such a transition? The variant with mix-blend-mode difference is not suitable, as there will be mixing with blue, and the task is specifically in the transition between two colors (white and black).

Transition example

  • one
    only duplication of the whole block comes to mind - Artem Gorlachev
  • In the case of duplication, it still does not work out so perfectly to change the z-index during the transition. There will be a sharp change of one for another. - Sergey Koreshkov
  • 2
    change not z-index, a height at the element above (with overflow) - Artem Gorlachev
  • Hm, it could work, now I'll try. - Sergey Koreshkov

0