combining multiple css animations into one overall animation

前端 未结 2 1855
旧巷少年郎
旧巷少年郎 2021-01-31 08:20

I have a set of animations that I queue up one after the other to create a bigger overall animation. For the sake of simplicity, I\'ve created a simple fiddle to demo what I mea

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 09:15

    You can use multiple animations separate by comma in shorthand property:

    .selector
    {
        animation: animation-name 2s infinite,
        other-animation-name 1s;
    }
    

提交回复
热议问题