Note that there are some explanatory texts on larger screens.

plurals
  1. POActivate JavaScript when a user "sees" an element?
    primarykey
    data
    text
    <p>I am interested in making a statital "rating bar" similar to the one(s) here: <a href="http://gdgt.com/improv-electronics/boogie-board/1st-gen/" rel="nofollow">http://gdgt.com/improv-electronics/boogie-board/1st-gen/</a> but I am not sure how I would do it.</p> <p>Basically on the load of the page, it doesn't activate the element, but when you scroll down to the bars, it loads them.</p> <p>How would I go upon doing somthing along those lines?</p> <p>Here is the HTML I have so far:</p> <pre><code>&lt;ul class="product-criteria-bars"&gt; &lt;li&gt; &lt;div class="product-criteria-label"&gt; Accuracy and sensitivity &lt;/div&gt; &lt;div class="product-criteria-bar"&gt; &lt;div class="fill light-green filled" data-width="240" style="width: 240px;"&gt;&lt;/div&gt; &lt;noscript&gt; &amp;lt;div class="fill light-green" style="width: 240px;"&amp;gt;&amp;lt;/div&amp;gt; &lt;/noscript&gt; &lt;/div&gt; &lt;div class="rating light-green"&gt;8.0&lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="product-criteria-label"&gt; Ergonomics / comfort &lt;/div&gt; &lt;div class="product-criteria-bar"&gt; &lt;div class="fill light-green filled" data-width="240" style="width: 240px;"&gt;&lt;/div&gt; &lt;noscript&gt; &amp;lt;div class="fill light-green" style="width: 240px;"&amp;gt;&amp;lt;/div&amp;gt; &lt;/noscript&gt; &lt;/div&gt; &lt;div class="rating light-green"&gt;8.0&lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>But what else do I need to do, JS wise?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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