CSS3 Transition - Fade out effect

后端 未结 6 2052
慢半拍i
慢半拍i 2020-11-28 22:19

I am trying to implement the \"fade out\" effect in pure CSS. Here is the fiddle. I did look into a couple of solutions online, however, after reading the documentation onli

6条回答
  •  庸人自扰
    2020-11-28 22:32

    .fadeOut{
        background-color: rgba(255, 0, 0, 0.83);
        border-radius: 8px;
        box-shadow: silver 3px 3px 5px 0px;
        border: 2px dashed yellow;
        padding: 3px;
    }
    .fadeOut.end{
        transition: all 1s ease-in-out;
        background-color: rgba(255, 0, 0, 0.0);
        box-shadow: none;
        border: 0px dashed yellow;
        border-radius: 0px;
    }
    

    demo here.

提交回复
热议问题