当前位置: 首页 > news >正文

做网站兼容性如何处理微信公众账号平台入口

做网站兼容性如何处理,微信公众账号平台入口,免费的企业网站源码,vivo官网网站服务这里主要是使用CSS的animation和伪类来构建#xff0c;分析设定关键帧的执行顺序和时间段。 效果 动画分析 首先通过效果对动画执行进行一下分析#xff1a; 边框的四条边进行按顺序动画加载 。矩形边框变为圆行边框。太极图内部图案渐渐出现。太极图旋转。整个动画逆序执…这里主要是使用CSS的animation和伪类来构建分析设定关键帧的执行顺序和时间段。 效果 动画分析 首先通过效果对动画执行进行一下分析 边框的四条边进行按顺序动画加载 。矩形边框变为圆行边框。太极图内部图案渐渐出现。太极图旋转。整个动画逆序执行。 针对上面的1效果是需要思考一下的其他都比较容易实现。5效果只需设置属性animation-direction: alternate即可整体动画加入animation-iteration-count: infinite来保证无限循环。 静态效果实现 首先将静态效果做出来。 html结构 div idloaderdiv classlogodiv classleft/divdiv classright/div/div pLoading.../p /div CSSLESS部分 border-width:2px; loader-width:150px; loader-insider-width:loader-width * 0.15; animate-time:4s;*{margin: 0;padding: 0;border: 0; }html, body{width: 100%;height: 100%; }#loader{position: absolute;top: 0;left: 0;bottom: 0;right: 0;display: flex;flex-direction: column;justify-content: center;align-items: center;p {padding: 1.5em;font-family: Arial;}.logo{width: loader-width;height: loader-width;position: relative;:before{position: absolute;content: ;left: 0;top: 0;border-color: transparent;border-width: border-width;border-style: solid;border-top-color: #000;border-right-color: #000;width: 100%;height: 100%;}:after{position: absolute;content: ;bottom: -2 * border-width;right: -2 * border-width;border-color: transparent;border-width: border-width;border-style: solid;border-bottom-color: #000;border-left-color: #000;width: 100%;height: 100%;}.left{position: absolute;width: 50%;height: 100%;top: border-width;right: 50%;background-color: #000;border-top-left-radius: 100% 50%;border-bottom-left-radius: 100% 50%;:before{position: absolute;content: ;width: 100%;height: 50%;bottom: 0;left: 50%;border-radius: 50%;background-color: #000;}:after{position: absolute;content: ;width: loader-insider-width;height: loader-insider-width;background-color: #fff;bottom: ~calc(25% - {loader-insider-width} / 2);left: ~calc(100% - {loader-insider-width} / 2);border-radius: 50%;} }.right{position: absolute;width: 50%;height: 100%;top: border-width;left: 50%;border-top-right-radius: 100% 50%;border-bottom-right-radius: 100% 50%;:before{position: absolute;content: ;width: 100%;height: 50%;top: 0;right: 50%;border-radius: 50%;background-color: #fff;}:after{position: absolute;content: ;width: loader-insider-width;height: loader-insider-width;background-color: #000;top: ~calc(25% - {loader-insider-width} / 2);right: ~calc(100% - {loader-insider-width} / 2);border-radius: 50%;} } } } 效果 动画实现 上面已经把静态的效果实现了现在将动画部分抽离出来。 动画关键帧时间段 根据效果做如下时间段划分 边框效果实现 将.logo的两个伪类的宽高设置为0然后添加动画效果 .logo{width: loader-width;height: loader-width;position: relative;animation: spin animate-time infinite;animation-direction: alternate;animation-timing-function:ease;:before{position: absolute;content: ;left: 0;top: 0;border-color: transparent;border-width: border-width;border-style: solid;animation: line-before animate-time infinite;animation-direction: alternate;}:after{position: absolute;content: ;bottom: -2 * border-width;right: -2 * border-width;border-color: transparent;border-width: border-width;border-style: solid;animation: line-after animate-time infinite;animation-direction: alternate;} } keyframes: keyframes line-before {0% {width: 0;height: 0;border-top-color: #000;}9.9% {border-right-color: transparent;}10% {width: 100%;border-right-color: #000;border-top-color: #000;height: 0;}20%,100% {width: 100%;border-right-color: #000;border-top-color: #000;height: 100%;}40% {width: 100%;border-right-color: #000;border-top-color: #000;height: 100%;border-radius: 0;}//在执行到50%的时候变圆50%, 100% {width: 100%;border-right-color: #000;border-top-color: #000;height: 100%;border-radius: 50%;} }keyframes line-after {0%,19.9% {border-color: transparent;width: 0;height: 0;}20% {width: 0;height: 0;border-bottom-color: #000;}29.9% {border-left-color: transparent;}30% {width: 100%;border-left-color: #000;border-bottom-color: #000;height: 0;}40% {width: 100%;border-left-color: #000;border-bottom-color: #000;height: 100%;border-radius: 0;}//在执行到50%的时候变圆50%, 100% {border-radius: 50%;width: 100%;border-left-color: #000;border-bottom-color: #000;height: 100%;} } 内部图案出现效果 这个直接调一下透明度即可 keyframes left-right-fade {0%, 50%{opacity: 0;}75%, 100% {opacity: 1;} } 旋转效果 keyframes spin {0%, 75%{transform:rotate(0deg);}90%, 100% {transform:rotate(360deg);} } 所有样式代码 //author: 王乐平 //date: 2017.8.1 //blog: http://blog.csdn.net/lecepinborder-width:2px; loader-width:150px; loader-insider-width:loader-width * 0.15; animate-time:4s;*{margin: 0;padding: 0;border: 0; }html, body{width: 100%;height: 100%; }#loader{position: absolute;top: 0;left: 0;bottom: 0;right: 0;display: flex;flex-direction: column;justify-content: center;align-items: center;p {padding: 1.5em;font-family: Arial;}.logo{width: loader-width;height: loader-width;position: relative;animation: spin animate-time infinite;animation-direction: alternate;animation-timing-function:ease;:before{position: absolute;content: ;left: 0;top: 0;border-color: transparent;border-width: border-width;border-style: solid;animation: line-before animate-time infinite;animation-direction: alternate;}:after{position: absolute;content: ;bottom: -2 * border-width;right: -2 * border-width;border-color: transparent;border-width: border-width;border-style: solid;animation: line-after animate-time infinite;animation-direction: alternate;}.left{position: absolute;width: 50%;height: 100%;top: border-width;right: 50%;background-color: #000;border-top-left-radius: 100% 50%;border-bottom-left-radius: 100% 50%;animation: left-right-fade animate-time infinite;animation-direction: alternate;:before{position: absolute;content: ;width: 100%;height: 50%;bottom: 0;left: 50%;border-radius: 50%;background-color: #000;}:after{position: absolute;content: ;width: loader-insider-width;height: loader-insider-width;background-color: #fff;bottom: ~calc(25% - {loader-insider-width} / 2);left: ~calc(100% - {loader-insider-width} / 2);border-radius: 50%;} }.right{position: absolute;width: 50%;height: 100%;top: border-width;left: 50%;border-top-right-radius: 100% 50%;border-bottom-right-radius: 100% 50%;animation: left-right-fade animate-time infinite;animation-direction: alternate;:before{position: absolute;content: ;width: 100%;height: 50%;top: 0;right: 50%;border-radius: 50%;background-color: #fff;}:after{position: absolute;content: ;width: loader-insider-width;height: loader-insider-width;background-color: #000;top: ~calc(25% - {loader-insider-width} / 2);right: ~calc(100% - {loader-insider-width} / 2);border-radius: 50%;} } } }keyframes line-before {0% {width: 0;height: 0;border-top-color: #000;}9.9% {border-right-color: transparent;}10% {width: 100%;border-right-color: #000;border-top-color: #000;height: 0;}20%,100% {width: 100%;border-right-color: #000;border-top-color: #000;height: 100%;}40% {width: 100%;border-right-color: #000;border-top-color: #000;height: 100%;border-radius: 0;}50%, 100% {width: 100%;border-right-color: #000;border-top-color: #000;height: 100%;border-radius: 50%;} }keyframes line-after {0%,19.9% {border-color: transparent;width: 0;height: 0;}20% {width: 0;height: 0;border-bottom-color: #000;}29.9% {border-left-color: transparent;}30% {width: 100%;border-left-color: #000;border-bottom-color: #000;height: 0;}40% {width: 100%;border-left-color: #000;border-bottom-color: #000;height: 100%;border-radius: 0;}50%, 100% {border-radius: 50%;width: 100%;border-left-color: #000;border-bottom-color: #000;height: 100%;} }keyframes left-right-fade {0%, 50%{opacity: 0;}75%, 100% {opacity: 1;} }keyframes spin {0%, 75%{transform:rotate(0deg);}90%, 100% {transform:rotate(360deg);} } 博客名称王乐平博客 CSDN博客地址http://blog.csdn.net/lecepin 本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。
http://www.zqtcl.cn/news/302847/

相关文章:

  • jeecms可以做网站卖吗山西网络推广专业
  • 2017 如何做网站优化育儿哪个网站做的好
  • 网站制作容易吗青岛网站建设公司报价
  • 淘宝建设网站的好处网站制作结构
  • 网站开发网站建设公司临沂网站建设找谁
  • 咋么做网站在电脑上潍坊免费模板建站
  • 苏州网站建设推广咨询平台做网站的公司图
  • 北京企业网站怎么建设免费给我推广
  • 网站制作价钱多少专业的咨询行业网站制作
  • 做百度网站每年的费用多少交换友情链接时需要注意的事项
  • 怎么在百度网站上做自己的网站百度开户渠道
  • php技术的网站建设实录方案做二手手机的网站有哪些
  • 做网站店铺装修的软件怎么做淘课网站
  • 百度一下官方网站wordpress连接代码
  • 什么网站详情页做的好仿唧唧帝笑话门户网站源码带多条采集规则 织梦搞笑图片视频模板
  • 平原网站建设费用少儿编程加盟店倒闭
  • 企业网站建设专业公司蜜淘app在那个网站做的
  • 市住房城乡建设部网站大学生课程设计网站
  • 广州大石附近做网站的公司外包服务公司是干什么的
  • 做的新网站网上搜不到做的网站百度搜索不出来的
  • 电商网站后台报价公司如何建站
  • 查网站有没有做推广企业网站建设的目标
  • 北京网站维护公司专业外贸网站建设_诚信_青岛
  • 网站自己做还是用程序制作网站一般使用的软件有哪些
  • 晨雷文化传媒网站建设济南互联网品牌设计
  • 怎样给自己的网站做防红连接梵客装饰公司官网
  • 甘肃省城乡与住房建设厅网站纪检网站建设动态主题
  • 关于做好全国网站建设网站建设哪个好
  • 灵犀科技网站建设企业建设网站作用
  • 做网站架构图无版权图片网站