start css3 animation after entire page load

前端 未结 6 1602
渐次进展
渐次进展 2020-12-16 01:22

Anyone know how to start a css3 animation after the rest of the page loads completely (images and everything)?

I am using a delay right now to mimic it but this is n

6条回答
  •  没有蜡笔的小新
    2020-12-16 02:00

    .bodyclass div{
        some animation css code
    }
    

    After body load just apply bodyclass to the body tag, then all the divs in the page will be animatable. This solution is efficient then @Husar said, because, we need to search only for the body element after the page load is complete but in other case, we need to change all the elements class name that needs to animated.

提交回复
热议问题