title: Checking visibility of an element
body: <p>I want to check if an element is visible and if yes, I want to scroll down to it. I am trying to achieve that with the following jquery:</p>
  
  <pre><code>var j = jQuery.noConflict();
  
    jQuery(document).ready(function($) {
      if(j('#element').css('display') == 'block'){
          j('body').scrollTo('#target');
        };
  });
  </code></pre>
  
  <p>but it does not work.</p>