Maintaining the final state at end of a CSS3 animation

前端 未结 4 1700
天涯浪人
天涯浪人 2020-11-22 07:24

I\'m running an animation on some elements that are set to opacity: 0; in the CSS. The animation class is applied onClick, and, using keyframes, it changes the

4条回答
  •  悲&欢浪女
    2020-11-22 07:51

    Try adding animation-fill-mode: forwards;. For example like this:

    -webkit-animation: bubble 1.0s forwards; /* for less modern browsers */
            animation: bubble 1.0s forwards;
    

提交回复
热议问题