css-keyframes

icon无限循环
.icon-loading{
        font-size: 25px;
        font-weight: 600;
        margin: 0 auto;
        display: block;
        -webkit-transition-property: -webkit-transform;
        -webkit-transition-duration: 1s;
        -moz-transition-property: -moz-transform;
        -moz-transition-duration: 1s;
        -webkit-animation: rotate 1s linear infinite;
        -moz-animation: rotate 1s linear infinite;
        -o-animation: rotate 1s linear infinite;
        animation: rotate 1s linear infinite;

    }

@-webkit-keyframes rotate{from{-webkit-transform: rotate(0deg)}
        to{-webkit-transform: rotate(360deg)}
    }
    @-moz-keyframes rotate{from{-moz-transform: rotate(0deg)}
        to{-moz-transform: rotate(359deg)}
    }
    @-o-keyframes rotate{from{-o-transform: rotate(0deg)}
        to{-o-transform: rotate(359deg)}
    }
    @keyframes rotate{from{transform: rotate(0deg)}
        to{transform: rotate(359deg)}
    }

pull down

.pull-down-enter-active,
.pull-down-leave-active {
  transition: all 0.1s ease-in-out;
}
.pull-down-enter,
.pull-down-leave-to {
  opacity: 0;
  transform: translateY(100%);
}

你可能感兴趣的:(css-keyframes)