Note that there are some explanatory texts on larger screens.

plurals
  1. POJitter on DIV Hover with Internet Explorer 11
    primarykey
    data
    text
    <p>I just cant seem to fix this issue where on hover, the DIV expands and then shrinks giving a "jumpy" or "jitter" look. This only seems to happen in IE 11 and I cant pinpoint why.</p> <p>I have a list which will be for images and I want the hover state to be a block that is 10px less than its parent;</p> <p><a href="http://jsfiddle.net/P6JGY/1381/" rel="nofollow">Here is my fiddle:</a></p> <p>Here is my code;</p> <p>HTML</p> <pre><code>&lt;div id="container"&gt; &lt;li class="item w2 h2"&gt; &lt;div class="inner"&gt;&lt;/div&gt;&lt;/li&gt; &lt;li class="item w2 h2"&gt; &lt;div class="inner"&gt;&lt;/div&gt;&lt;/li&gt; &lt;li class="item w2 h2"&gt; &lt;div class="inner"&gt;&lt;/div&gt;&lt;/li&gt; &lt;li class="item w2 h2"&gt; &lt;div class="inner"&gt;&lt;/div&gt;&lt;/li&gt; &lt;li class="item w2 h2"&gt; &lt;div class="inner"&gt;&lt;/div&gt;&lt;/li&gt; &lt;li class="item w2 h2"&gt; &lt;div class="inner"&gt;&lt;/div&gt;&lt;/li&gt; &lt;/div&gt; </code></pre> <p>CSS - the inner class is the one with the hover</p> <pre><code>#container { padding: 5px; margin: 0 auto; border: 2px solid black; } .item { display:block !important; list-style:none; float: left; background: #CCC; margin: 5px; width: 50px; height: 50px; } .item.w2 { width: 300px; } .item.h2 { height: 200px; } .inner { background:#fff; background: rgba(255, 255, 255, 1); position: absolute; top: 10px; left: 10px; bottom: 10px; right: 10px; margin:0; padding:0; text-align: center; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; -webkit-transition: opacity .4s ease-in-out; -moz-transition: opacity .4s ease-in-out; -ms-transition: opacity .4s ease-in-out; -o-transition: opacity .4s ease-in-out; transition: opacity .4s ease-in-out; } .inner:hover { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=95)"; filter: alpha(opacity=95); opacity: .95; z-index:1; } /* no transition on .isotope container */ .isotope .isotope-item { /* change duration value to whatever you like */ -webkit-transition-duration: 1s; -moz-transition-duration: 1s; transition-duration: .6s; } .isotope .isotope-item { -webkit-transition-property: -webkit-transform, opacity; -moz-transition-property: -moz-transform, opacity; transition-property: transform, opacity; opacity:.5; } </code></pre> <p>Consequently the "jumpy" or "jitter" disappears when there is no -transition such as ease-in-out or opacity.</p> <p>I appreciate anyone who has a look! any suggestions would be great this is a huge learning curve for me :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload