Multiple webkit animations

后端 未结 1 1678
滥情空心
滥情空心 2020-12-29 02:21

I\'m trying to run multiple webkit animations at once. Demo can be seen here:

HTML:


  
相关标签:
1条回答
  • 2020-12-29 02:48

    You can separate multiple animations with a , and set a delay on the second one if needed:

    -webkit-animation: shrink 2s ease-out, pulsate 4s 2s infinite ease-in-out;
    

    2s in the second animation is the delay


    Since Chrome 43 and Safari 9/9.2, the -webkit- prefix is only needed for Blackberry and UC (Android) browser. So the new correct syntax would be

    animation: shrink 2s ease-out, pulsate 4s 2s infinite ease-in-out;
    
    0 讨论(0)
提交回复
热议问题