Animating non-animatable properties with CSS3 transitions

后端 未结 2 544
灰色年华
灰色年华 2021-01-13 20:30

In my app I\'m animating the opacity of elements on the page with something like:

.s {
    transition-property: opacity;
    transition-duration: 250ms;
}
         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 20:58

    As a good alternative to display/visibility toggle, opacity:0 with pointer-events:none could be used.

提交回复
热议问题