Make background fade out/in

后端 未结 3 422
刺人心
刺人心 2020-12-17 10:03

Is there any way I can use CSS3 to fade in and out a solid white background of a

? the content should remain visible so just the background should fa
3条回答
  •  自闭症患者
    2020-12-17 10:38

    You could have two divs in one container div. The first div contains the white background, the second one gets the content.

    Then, use a CSS3 transform to animate the opacity of the first div to zero.

提交回复
热议问题