CSS3特效之动画

白色玫瑰 程序猿

时间: 2023-05-22 阅读: 1 字数:2166

{}
我们在工作中会遇到很多特效,很多情况下因为我们不是专业的美工所以就很难想到一些动画是怎样设计的,在这里小编给大家介绍一个网站https://daneden.github.io/animate.css/\r\n   你在这里会看到很多的特效,\r\n  \r\n     点如进入github中,你就能看到下图\r\n   \r\n   然后打开里面就有动画的代码\r\n      @-webkit-keyframes bo
我们在工作中会遇到很多特效,很多情况下因为我们不是专业的美工所以就很难想到一些动画是怎样设计的,在这里小编给大家介绍一个网站https://daneden.github.io/animate.css/

你在这里会看到很多的特效,

点如进入github中,你就能看到下图

然后打开里面就有动画的代码

 @-webkit-keyframes bounce {
         from, 20%, 53%, 80%, to {
            -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            -webkit-transform: translate3d(0,0,0);
            transform: translate3d(0,0,0);
         }

         40%, 43% {
            -webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
            animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
            -webkit-transform: translate3d(0, -30px, 0);
            transform: translate3d(0, -30px, 0);
         }

         70% {
            -webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
            animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
            -webkit-transform: translate3d(0, -15px, 0);
            transform: translate3d(0, -15px, 0);
         }

         90% {
            -webkit-transform: translate3d(0,-4px,0);
            transform: translate3d(0,-4px,0);
         }
      }

然后在你的元素中使用animation:bounce 2s linear infinite,调用就可以了!

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

本文章网址:https://www.sjxi.cn/detil/4b8a110cc3d647a9b066d27dd83b3ac5

最新评论

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

湘ICP备2021009447号

×

(穷逼博主)在线接单

QQ: 1164453243

邮箱: abcdsjx@126.com

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