Set a CSS3 transition to none

后端 未结 3 1777
面向向阳花
面向向阳花 2020-12-28 14:00

How would I make it so a CSS transition doesn\'t work inside a media-query, or in any other case? For example:

@media (min-width: 200px) {
    element {
             


        
3条回答
  •  被撕碎了的回忆
    2020-12-28 14:45

    You can set the transition-property to none. This way, no transition effect will be applied.

    Like this:

    -webkit-transition-property: none;
    -moz-transition-property: none;
    -o-transition-property: none;
    transition-property: none;
    

提交回复
热议问题