久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" 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>
                            主站蜘蛛池模板: 中文字幕不卡在线观看 | 欧美精品成人一区二区三区四区 | 免费成年网站 | 国产精品美女久久久 | 2021狠狠天天天 | 不卡一二区| 国产精品成av人在线视午夜片 | 特黄毛片视频 | 成人a免费 | 夜夜摸夜夜操 | 黄久久久 | 精品区 | 久久国品片 | 亚洲国产精品一区二区www | 国产精品一区在线 | 精品国产乱码久久久久久影片 | 草久久久 | a视频在线| 欧美日韩中文字幕在线 | 中文字字幕一区二区三区四区五区 | 国产亚洲一区二区在线观看 | 亚洲成人自拍网 | av日韩在线播放 | 国产精品成人一区二区三区夜夜夜 | 久久在线 | 欧美在线日韩 | 伊人看片| 精精精精xxxx免费视频 | 中文字幕在线观 | 在线播放中文字幕 | 精品国产精品三级精品av网址 | 午夜成人免费视频 | 成年人免费看的视频 | 国产视频福利一区 | 精品国产一区探花在线观看 | 理论片午午伦夜理片影院 | 欧美一a| www.婷婷| 三级在线观看 | 国产午夜精品一区二区三区嫩草 | 久久99精品久久久久蜜桃tv |