Note that there are some explanatory texts on larger screens.

plurals
  1. POText flickering after load
    text
    copied!<p>I have an issue with my text flickering after load in this example:</p> <p>look here: <a href="http://www.floatleft.dk/scounter" rel="nofollow">http://www.floatleft.dk/scounter</a></p> <p>but then in the <a href="http://jsfiddle.net/iBertel/yVA3g/" rel="nofollow">fiddle</a> here it is not doing it.</p> <p>anyone have an idea to why this is happening? the code is exact match.</p> <p>Now with fiddle - i found out my problem only occurs if i have my background image enabled... anyone know why this happens? I have enabled the background image <a href="http://floatleft.dk/scounter" rel="nofollow">here</a> so you can see the difference:</p> <p><strong>HTML</strong></p> <pre><code> &lt;div class="info-wrap"&gt; &lt;div class="info-background"&gt; &lt;img src="img/info-bgg.png" alt="info-bgg" width="360" height="340" /&gt; &lt;/div&gt; &lt;ul class="loop-info"&gt; &lt;li&gt;text1&lt;/li&gt; &lt;li&gt;text1&lt;/li&gt; &lt;li&gt;text1&lt;/li&gt; &lt;li&gt;text1&lt;/li&gt; &lt;li&gt;text1&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code> .slide-wrap { width:720px; height:340px; position: relative; background-color:#F60; margin: 0 auto; margin-top: 100px; } .video-wrap { width:720px; height:340px; background-color:#000; } .info-wrap { width:360px; height:340px; background-color:#666; position: absolute; top:0; left: 0; } .info-wrap .video-embed-wrap { width:604px; height: 340px; float: right; background-color:#000; } .info-wrap .info-background { position: absolute; top:0; left: 0; } .info-wrap ul { list-style: none; position: relative; } .info-wrap .loop-info li { display: none; font-size: 30px; color:#FFF; } </code></pre> <p><strong>JQUERY</strong></p> <pre><code>function fadeInSequence($one) { //default to the first one list items if ($one == null) $one = $('.loop-info&gt;li:lt(1)'); //fade in the 1 found $one.fadeIn(2000, function () { //fade out the 1 after fadein and start $(this).fadeOut(2000); }).promise().done(function () { if ($one.last().nextAll(':lt(1)').length) { //Same function, next 1 items fadeInSequence($one.last().nextAll(':lt(1)')); } else { //Same function, from the beginning if none are left fadeInSequence(); } }); } $(function () { //start the infinite looping fadeInSequence(); }); </code></pre>
 

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