animation - Trying to get a css3 hover off transition working with my code -


When I close the cursor of the images, what should I do to roll back icons? Currently they roll when they move, but when I leave them, I wanted to roll them back to their initial position. Any thoughts?

& lt; Head & gt; & Lt; Style & gt; UL # Roller & gt; Lee (float: left; Padding: 20px; Border-radius: 60px; Width: 80px; Height: 80px; Margin-left: 10px; Margin-top: 90px; } Ul # roller & gt; li: nth-child (1) {background: url ('http://praxis.cit.ie/~josephwinfield/wordpress/wp-content/themes/jaywin/img/1.png') No repetition in the center center ; } Ul # roller & gt; li: nth-child (2) {background: url ('http://praxis.cit.ie/~josephwinfield/wordpress/wp-content/themes/jaywin/img/2.png') No repetition in the center center ; } Ul # roller & gt; li: nth-child (3) {background: url ('http://praxis.cit.ie/~josephwinfield/wordpress/wp-content/themes/jaywin/img/3.png') No repetition in the center center ; } Ul # roller & gt; li: nth-child (4) {background: url ('http://praxis.cit.ie/~josephwinfield/wordpress/wp-content/themes/jaywin/img/4.png') center center no repetition; } Ul # roller & gt; li: nth-child (5) {background: url ('http://praxis.cit.ie/~josephwinfield/wordpress/wp-content/themes/jaywin/img/5.png') Not Center Center-Repeat; } UL # Roller: Hover Lee {Animation: Rotate 2s; Webkit-Animation: Rotate 2s; } Ul # roller: hinge {margin-left: 100px; } #roller {Infection: All 2s Easy-In-Out; -Widk-Infection: All 2s Easy-In-Out; Height: 400 pixels; } #shelf {background: url ('http://praxis.cit.ie/~josephwinfield/wordpress/wp-content/themes/jaywin/img/shelf.jpg') There is no duplication in the center center; Background-size: 900px; } @ Keyframe rotate {0% {translate (0px, 0px;)} 100% {conversion: rotate (360 degree) translation (0 pixels, 0 pixels); }} @ -WebKit-Keyframe Rotate {0% {translation (0 px, 0 px;)} 100% {-webkit-transform: rotate (360 degree) translation (0 px, 0 px); }} & Lt; / Style & gt; & Lt; Script & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; div id = "shelf" & gt; & Lt; ul id = "roller" & gt; & Lt; Li id = "# roller" & gt; & Lt; / li & gt; & Lt; Li id = "# roller" & gt; & Lt; / li & gt; & Lt; Li id = "# roller" & gt; & Lt; / li & gt; & Lt; li id ​​= "# roller" & gt; & Lt; / li & gt; & Lt; li id ​​= "# roller" & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;

Animation defined only in : hover position is . You need to define reverse animation for the default position. Use the animation-direction: reverse

Another option is to use a transition to add the appropriate prefix.

  ul # roller li {Infection: 2s conversion; } UL # Roller: Hover Lee (Transcam: Rotate (360 degrees); }    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -