css3动画延迟运行 animation-delay

1.语法

animation: name duration timing-function delay iteration-count direction fill-mode play-state;

2.说明

name 指定要绑定到选择器的关键帧的名称
duration 动画指定需要多少秒或毫秒完成
timing-function 设置动画将如何完成一个周期
delay 设置动画在启动前的延迟间隔。
iteration-count 定义动画的播放次数。
direction 指定是否应该轮流反向播放动画。
fill-mode 规定当动画不播放时(当动画完成时,或当动画有一个延迟未开始播放时),要应用到元素的样式。
play-state 指定动画是否正在运行或已暂停。

3.适用场景:一个动画过后想接着下一个动画

觉得animation延迟挺有用的,记录一下。好处:用animation-delay就不用js或者jQ进行操作,纯css能完成一整个动画。

3.1.纯css3动画代码

效果链接:http://fjfblog.com/css3.html

body部分

    <div class="animation01">
        <div class="rhombus_small">
            <div class="rhombus">
                <div class="border_box">
                    <span class="line line01">span>
                    <span class="line line02">span>
                    <span class="line line03">span>
                    <span class="line line04">span>
                    <span class="circle circle01">span>
                    <span class="circle circle02">span>
                    <span class="circle circle03">span>
                    <span class="circle circle04">span>
                    <span class="animation_line animation_line01">span>
                    <span class="animation_line_wrapper animation_line02_wrapper"><span
                            class="animation_line animation_line02">span>span>
                    <span class="animation_line animation_line03">span>
                    <span class="animation_line_wrapper animation_line04_wrapper"><span
                            class="animation_line animation_line04">span>span>
                    <span class="animation_line animation_line05">span>
                    <span class="animation_line_wrapper animation_line06_wrapper"><span
                            class="animation_line animation_line06">span>span>
                    <span class="animation_line animation_line07">span>
                    <span class="animation_line_wrapper animation_line08_wrapper"><span
                            class="animation_line animation_line08">span>span>
                div>
                <div class="wave">
                    <div class="wave_wrapper">
                        <div class="wave_box">div>
                    div>
                div>
            div>
        div>
    div>
    <div class="animation02">
        <div class="rhombus_box">
            <span class="rhombus_item_wrapper rhombus_item01_wrapper"><span class="rhombus_item">span>span>
            <span class="rhombus_item_wrapper rhombus_item02_wrapper"><span class="rhombus_item">span>span>
        div>
        <div class="double_content">
            <div class="double_wrapper02 dotted02">
                <div class="dotted_hide">
                    <div class="double_wrapper01 dotted01"><span class="dotted_right">span>div>
                div>
            div>
            <div class="double_wrapper02 white02">
                <div class="double_wrapper01 white01">div>
            div>
            <div class="double_wrapper02 gray02">
                <div class="double_wrapper01 gray01">div>
            div>
            <div class="double_wrapper02 orange02">
                <div class="double_wrapper01 orange01">div>
            div>
        div>
        <div class="name">

你可能感兴趣的:(笔记)