pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<small id='Ip3TP'></small><noframes id='Ip3TP'>

      <bdo id='Ip3TP'></bdo><ul id='Ip3TP'></ul>
      1. <tfoot id='Ip3TP'></tfoot>
        <legend id='Ip3TP'><style id='Ip3TP'><dir id='Ip3TP'><q id='Ip3TP'></q></dir></style></legend>
      2. <i id='Ip3TP'><tr id='Ip3TP'><dt id='Ip3TP'><q id='Ip3TP'><span id='Ip3TP'><b id='Ip3TP'><form id='Ip3TP'><ins id='Ip3TP'></ins><ul id='Ip3TP'></ul><sub id='Ip3TP'></sub></form><legend id='Ip3TP'></legend><bdo id='Ip3TP'><pre id='Ip3TP'><center id='Ip3TP'></center></pre></bdo></b><th id='Ip3TP'></th></span></q></dt></tr></i><div class="58n55om" id='Ip3TP'><tfoot id='Ip3TP'></tfoot><dl id='Ip3TP'><fieldset id='Ip3TP'></fieldset></dl></div>

        平滑的 CSS 過渡動畫旋轉

        Smooth CSS Transition Animation Rotation(平滑的 CSS 過渡動畫旋轉)

        • <i id='cMgwS'><tr id='cMgwS'><dt id='cMgwS'><q id='cMgwS'><span id='cMgwS'><b id='cMgwS'><form id='cMgwS'><ins id='cMgwS'></ins><ul id='cMgwS'></ul><sub id='cMgwS'></sub></form><legend id='cMgwS'></legend><bdo id='cMgwS'><pre id='cMgwS'><center id='cMgwS'></center></pre></bdo></b><th id='cMgwS'></th></span></q></dt></tr></i><div class="pox8tef" id='cMgwS'><tfoot id='cMgwS'></tfoot><dl id='cMgwS'><fieldset id='cMgwS'></fieldset></dl></div>
          <legend id='cMgwS'><style id='cMgwS'><dir id='cMgwS'><q id='cMgwS'></q></dir></style></legend>

          <small id='cMgwS'></small><noframes id='cMgwS'>

              <tfoot id='cMgwS'></tfoot>

                <bdo id='cMgwS'></bdo><ul id='cMgwS'></ul>
                  <tbody id='cMgwS'></tbody>

                • 本文介紹了平滑的 CSS 過渡動畫旋轉的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我創建了這個小提琴來演示這個問題:

                  I have created this fiddle to demonstrate the problem:

                  http://jsfiddle.net/NfX56/

                  動畫 ROTATION 和 HOVER 似乎可以很好地改變方向,但是當我將鼠標懸停在項目上進行轉換時,TOGGLE 是跳躍的,而不是像我想要的那樣平滑地反轉方向.

                  Animation ROTATION and HOVER seems to work fine for changing direction but the TOGGLE when I hover over the item for transition is jumpy and not a smooth reverse of direction like I would like.

                  這里是沒有瀏覽器前綴的基本代碼:

                  Here is the basic code without browser prefix:

                  @keyframes spin {
                      0% { transform: rotate(0deg); }
                      100% { transform: rotate(360deg); }
                  }
                  .spin {
                      animation: spin 3.5s linear 0s infinite normal;
                      width: 100px;
                      height: 100px;
                      border-radius: 50px 50px 50px 50px;
                      overflow: hidden;
                      margin-left: -50px;
                      margin-top: -50px;
                      top: 50%;
                      left: 50%;
                      position: absolute;
                  }
                  .spin:hover {
                      animation: spin 3.5s linear 0s infinite reverse;
                  }
                  

                  我一直在嘗試解決以下問題:

                  I have been trying to play around with the following:

                  transition-property: transform;
                  transition-duration: 0s;
                  transition-timing-function: ease-in-out;
                  

                  試圖使動畫平滑,使符號平滑地反轉方向,但我似乎不太正確......任何幫助都會很棒!

                  In an attempt to smooth the animation so that the symbol smoothly reverses direction but I can't quite seem to get it right... any help would be great!

                  http://jsfiddle.net/NfX56/

                  推薦答案

                  我需要考慮很多才能解決您的要求;但我終于找到了解決辦法

                  I needed to think a lot to solve your request; but I have finally find the solution

                  相關CSS代碼:

                  .spin {
                      animation: spin 2s linear 0s infinite reverse;
                      -moz-animation: 2s linear 0s reverse none infinite spin;
                      -webkit-animation: spin 2s linear 0s infinite reverse;
                      -0-animation: spin 2s linear 0s infinite reverse;
                      -webkit-animation-play-state: paused;
                      -o-animation-play-state: paused;
                      -moz-animation-play-state: paused;
                      animation-play-state: paused;
                  }
                  .spin:hover {
                      -webkit-animation-play-state: running;
                      -o-animation-play-state: running;
                      -moz-animation-play-state: running;
                      -webkit-animation-play-state: running;
                  }
                  .yin-yang {
                      animation: spin 4s linear 0s infinite normal;
                      -moz-animation: 4s linear 0s normal none infinite spin;
                      -webkit-animation: spin 4s linear 0s infinite normal;
                      -0-animation: spin 4s linear 0s infinite normal;
                  }
                  

                  訣竅:由于您已經有 2 個元素(自旋和陰陽),我將其中一個設置為向一個方向旋轉,另一個設置為反向旋轉,并且速度更快.當兩者都在運行時,凈效果是向一個方向旋轉;當只有一個旋轉時,凈效果是相反的.

                  The trick: since you already had 2 elements (spin and yin-yang) I set one of them to rotate in one direction, and the other one to rotate in reverse, and more fast. When both are running, the net effect is to rotate in one direction; when only one is rotating, the net effect is the opposite.

                  現在,唯一剩下的就是暫停并重新啟動快速旋轉(不是設置重置它!)

                  Now, the only thing that is left is to pause and restart the fast rotation (not setting reseting it !)

                  在上面檢測到一個錯誤,.spin:hover 的第四行應該是無前綴的:

                  Detected one mistake on the above, the fourth line of .spin:hover should be the un-prefixed:

                  .spin:hover {
                      -webkit-animation-play-state: running;
                      -o-animation-play-state: running;
                      -moz-animation-play-state: running;
                      animation-play-state: running;
                  }
                  

                  修正演示

                  在 HTML 中添加一個額外的元素我已經能夠使旋轉變化平滑.

                  Adding an extra element in the HTML I have been able to make the rotation change smooth.

                  平滑過渡演示

                  額外的 CSS 是:

                  .acc {
                      transition: all 4s ease-out;
                  }
                  .spin:hover .acc {
                      -webkit-transform: rotate(-360deg);
                      transform: rotate(-360deg);
                  }
                  

                  這篇關于平滑的 CSS 過渡動畫旋轉的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Selenium WebDriver get text from CSS property quot;contentquot; on a ::before pseudo element(Selenium WebDriver 從 CSS 屬性“內容獲取文本在 ::before 偽元素上)
                  CSS Rotate Text Vertical - Extra Space on both sides(CSS垂直旋轉文本 - 兩側的額外空間)
                  Safari CSS Bug: Animation Rotation Direction Incorrect?(Safari CSS Bug:動畫旋轉方向不正確?)
                  Rotating 90 degrees in CSS in IE8 and lower(在 IE8 及更低版本的 CSS 中旋轉 90 度)
                  To rotation an image in canvas using mouse(使用鼠標旋轉畫布中的圖像)
                  html5 - Get device orientation rotation in relative coordinate(html5 - 以相對坐標獲取設備方向旋轉)
                            <tbody id='SkThn'></tbody>

                          • <bdo id='SkThn'></bdo><ul id='SkThn'></ul>
                            <tfoot id='SkThn'></tfoot>

                            <small id='SkThn'></small><noframes id='SkThn'>

                            <i id='SkThn'><tr id='SkThn'><dt id='SkThn'><q id='SkThn'><span id='SkThn'><b id='SkThn'><form id='SkThn'><ins id='SkThn'></ins><ul id='SkThn'></ul><sub id='SkThn'></sub></form><legend id='SkThn'></legend><bdo id='SkThn'><pre id='SkThn'><center id='SkThn'></center></pre></bdo></b><th id='SkThn'></th></span></q></dt></tr></i><div class="ojfqfh3" id='SkThn'><tfoot id='SkThn'></tfoot><dl id='SkThn'><fieldset id='SkThn'></fieldset></dl></div>
                          • <legend id='SkThn'><style id='SkThn'><dir id='SkThn'><q id='SkThn'></q></dir></style></legend>
                            主站蜘蛛池模板: 全自动固相萃取仪_高通量真空平行浓缩仪-勤业永为 | 青州开防盗门锁-配汽车芯片钥匙-保险箱钥匙-吉祥修锁店 | 钢制暖气片散热器_天津钢制暖气片_卡麦罗散热器厂家 | 双段式高压鼓风机-雕刻机用真空泵-绍兴天晨机械有限公司 | 带式压滤机_污泥压滤机_污泥脱水机_带式过滤机_带式压滤机厂家-河南恒磊环保设备有限公司 | 广东护栏厂家-广州护栏网厂家-广东省安麦斯交通设施有限公司 | 贴片电容-贴片电阻-二三极管-国巨|三星|风华贴片电容代理商-深圳伟哲电子 | 杭州货架订做_组合货架公司_货位式货架_贯通式_重型仓储_工厂货架_货架销售厂家_杭州永诚货架有限公司 | 电动卫生级调节阀,电动防爆球阀,电动软密封蝶阀,气动高压球阀,气动对夹蝶阀,气动V型调节球阀-上海川沪阀门有限公司 | 杭州|上海贴标机-百科 | 室内室外厚型|超薄型|非膨胀型钢结构防火涂料_隧道专用防火涂料厂家|电话|价格|批发|施工 | 宽带办理,电信宽带,移动宽带,联通宽带,电信宽带办理,移动宽带办理,联通宽带办理 | 办公室装修_上海办公室设计装修_时尚办公新主张-后街印象 | 预制围墙_工程预制围墙_天津市瑞通建筑材料有限公司 | 欧美日韩国产一区二区三区不_久久久久国产精品无码不卡_亚洲欧洲美洲无码精品AV_精品一区美女视频_日韩黄色性爱一级视频_日本五十路人妻斩_国产99视频免费精品是看4_亚洲中文字幕无码一二三四区_国产小萍萍挤奶喷奶水_亚洲另类精品无码在线一区 | 河北码上网络科技|邯郸小程序开发|邯郸微信开发|邯郸网站建设 | 成都亚克力制品,PVC板,双色板雕刻加工,亚克力门牌,亚克力标牌,水晶字雕刻制作-零贰捌广告 | 据信,上课带着跳 D 体验-别样的课堂刺激感受引发网友热议 | RV减速机-蜗轮蜗杆减速机-洗车机减速机-减速机厂家-艾思捷 | 科箭WMS仓库管理软件-TMS物流管理系统-科箭SaaS云服务 | 吹塑加工_大型吹塑加工_滚塑代加工-莱力奇吹塑加工有限公司 | 杜康白酒加盟_杜康酒代理_杜康酒招商加盟官网_杜康酒厂加盟总代理—杜康酒神全国运营中心 | 水平筛厂家-三轴椭圆水平振动筛-泥沙震动筛设备_山东奥凯诺矿机 包装设计公司,产品包装设计|包装制作,包装盒定制厂家-汇包装【官方网站】 | 青海电动密集架_智能密集架_密集架价格-盛隆柜业青海档案密集架厂家 | 仿真茅草_人造茅草瓦价格_仿真茅草厂家_仿真茅草供应-深圳市科佰工贸有限公司 | 袋式过滤器,自清洗过滤器,保安过滤器,篮式过滤器,气体过滤器,全自动过滤器,反冲洗过滤器,管道过滤器,无锡驰业环保科技有限公司 | 玉米加工设备,玉米深加工机械,玉米糁加工设备.玉米脱皮制糁机 华豫万通粮机 | 诺冠气动元件,诺冠电磁阀,海隆防爆阀,norgren气缸-山东锦隆自动化科技有限公司 | 耙式干燥机_真空耙式干燥机厂家-无锡鹏茂化工装备有限公司 | 屏蔽泵厂家,化工屏蔽泵_维修-淄博泵业| 东莞注册公司-代办营业执照-东莞公司注册代理记账-极刻财税 | 自动气象站_农业气象站_超声波气象站_防爆气象站-山东万象环境科技有限公司 | 宝宝药浴-产后药浴-药浴加盟-艾裕-专注母婴调养泡浴 | 奇酷教育-Python培训|UI培训|WEB大前端培训|Unity3D培训|HTML5培训|人工智能培训|JAVA开发的教育品牌 | 废水处理-废气处理-工业废水处理-工业废气处理工程-深圳丰绿环保废气处理公司 | 全自动包装秤_全自动上袋机_全自动套袋机_高位码垛机_全自动包装码垛系统生产线-三维汉界机器(山东)股份有限公司 | 首页|成都尚玖保洁_家政保洁_开荒保洁_成都保洁 | 嘉兴恒升声级计-湖南衡仪声级计-杭州爱华多功能声级计-上海邦沃仪器设备有限公司 | BHK汞灯-百科|上海熙浩实业有限公司 | 焊接烟尘净化器__焊烟除尘设备_打磨工作台_喷漆废气治理设备 -催化燃烧设备 _天津路博蓝天环保科技有限公司 | 定制异形重型钢格栅板/钢格板_定做踏步板/排水沟盖板_钢格栅板批发厂家-河北圣墨金属制品有限公司 |