css动画特效的应用详解

白色玫瑰 程序猿

时间: 2023-07-15 阅读: 1 字数:1853

{}
动画:定义动画关键帧方案          @keyframes 动画名{from{}0%{ }……to 100%{}百分比表示动画播放时间}         /*animation-name  设置动画关键帧/名称*/                 animation-name: move;                 /*动画播放时间*/                 animatio...

动画:定义动画关键帧方案

      @keyframes 动画名{ 

from{}

0%{ }

……

to 100%{}

百分比表示动画播放时间

}

     /*animation-name  设置动画关键帧/ 名称*/ 


           animation-name: move; 


           /* 动画播放时间*/ 


           animation-duration: 2s; 


           /* 动画完成后的停止位置 


           backwards: 播放完成后回到第一个关键帧样式; 


           forwards: 播放完成后停在最后一个关键帧样式; 


           */ 


           animation-fill-mode: forwards; 


           /* 动画关键帧执行方向 


           指动画方案从0% 执行到100% 代表一次 normal 


              动画方案从100-0%     reverse 


                    0-100-0    alternate 


                    100-0-100   alternate-reverse 


             */ 


           animation-direction: alternate-reverse; 


           /* 动画播放次数   infinite  无限次播放*/ 


           animation-iteration-count: infinite; 


           /* 动画时间曲线方程*/ 


           animation-timing-function: ease-in; 


           /* 动画延时*/ 


           animation-delay: 


      /* 动画播放状态控制 


           running  播放 


           paused   暂停*/ 


           animation-play-state: paused; 


  引用动画库      

原文地址:https://blog.csdn.net/cathei/article/details/80823897?ops_request_misc=&request_id=7c3a0a7c6c264218995b401c42e60581&biz_id=&utm_medium=distribute.pc_search_result.none-task-blog-2~all~koosearch~default-16-80823897-null-null.142^v88^insert_down28v1,239^v2^insert_chatgpt&utm_term=css3%E7%89%B9%E6%95%88

本文章网址:https://www.sjxi.cn/detil/2b32bf9abbf24bfead313f546ca26699

最新评论

当前未登陆哦
登陆后才可评论哦

湘ICP备2021009447号

×

(穷逼博主)在线接单

QQ: 1164453243

邮箱: abcdsjx@126.com

前端项目代做
前后端分离
Python 爬虫脚本
Java 后台开发
各种脚本编写
服务器搭建
个人博客搭建
Web 应用开发
Chrome 插件编写
Bug 修复