Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS transition/animation cross browser not working
    text
    copied!<p>Here is the <a href="http://jsfiddle.net/7gvRT/" rel="nofollow">FIDDLE</a> Link.</p> <p>My problem is the animation is working fine on Firefox but somehow it is not working as expected in chrome.</p> <p>Please view the fiddle in both the browser that is chrome &amp; firefox &amp; mouseover the image &amp; you will see the difference.</p> <p>GIven below is the stylesheet</p> <p>===================================</p> <pre><code>.portfolio_container { position:relative; display:block; overflow:hidden; width:100%; } .portfolio_container .portfolio { position:relative; display:block; float:left; overflow:hidden; width:25%; height:auto; } .portfolio_container .portfolio .media_box figure a img { display:block; margin-left: auto; margin-right: auto; } .portfolio_container .portfolio .media_box .hover_effect { top:0; left:0; } .thumbLink { display: block; width: 100%; } .thumbImage { float: left; position: relative; overflow: hidden; display: block; margin-bottom: 0px; box-sizing: border-box; text-align: center; width: 100%; height: 100%; } .thumbImage img{ transition: all 0.7s ease-in-out; } .thumbImage .thumbText h3 { margin-bottom: 10px; padding-top: 10px; border-bottom: 1px solid #fff; transition: all 1s ease-in-out; } .thumbImage .thumbText p { margin-bottom: 10px; color: #fff; transition: all 1s ease-in-out; } .thumbImage .thumbTextWrap { position: absolute; top: 0; height: 100%; max-width: 100%; min-width: 100%; opacity: 0; background: #7B133C; text-align: center; transition: all 1s ease-in-out; -webkit-user-select: none; } .ie8 .thumbImage .thumbTextWrap { display:none; } .thumbImage .thumbTextWrap:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; margin-right: -0.5em; /* Adjusts for spacing */ } .thumbText { text-align: center; transform: scale(0); transition: all 0.7s ease-in-out; display: inline-block; vertical-align: middle; width: 90%; } .thumbImage:hover img { opacity: 0; transform: scale(10); } .touch-device .thumbImage:hover img { transform: none; } .thumbImage:hover .thumbTextWrap { opacity: 1; } .thumbImage:hover .thumbText { transform: scale(1); -webkit-transform: scale(1); } </code></pre> <h1>and here is my html</h1> <pre><code>&lt;section class="portfolio_container"&gt; &lt;article class="portfolio"&gt; &lt;section class="thumbImage"&gt; &lt;img src="http://html5css3templates.com/themes/surrealstudio/templates/images/gallery/gallery-04-thumb.jpg" alt=""&gt; &lt;div class="thumbTextWrap"&gt; &lt;div class="thumbText"&gt; &lt;h3 class="sectionTitle"&gt;Gallery Item&lt;/h3&gt; &lt;p&gt;Duis mollis, est non commodo luctus, nisi erat porttitor ligula.&lt;/p&gt; &lt;a class="thumbLink" href="http://html5css3templates.com/themes/surrealstudio/templates/images/gallery/gallery-04.jpg" rel="prettyPhoto[gallery1]" title="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ac augue at erat hendrerit dictum."&gt;&lt;i class="icon-search"&gt;&lt;/i&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; &lt;/article&gt; &lt;/section&gt; </code></pre> <p>ANy help will be appritiated.</p> <p>THanks </p> <ul> <li>Vikas</li> </ul>
 

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