title: Shaking the div after it is reached by smooth scrolling
body: <p>I try to shake the content of the div on the webpage as soon as it appears on the screen by smooth scrolling there. I have the following html code:</p>
  
  <pre><code>&lt;script src="js/jquery.smooth-scroll.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.jrumble.1.3.js"&gt;&lt;/script&gt;
  &lt;ul&gt;
     &lt;li&gt;&lt;a href="#one"&gt;One&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#two"&gt;Two&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="#three"&gt;Three&lt;/a&gt;&lt;li&gt;
     &lt;li&gt;&lt;a href="#four"&gt;Four&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  (...)
  
  &lt;article class="item" id="one"&gt;
     &lt;div class="item__info"&gt;
       &lt;h2&gt;One&lt;/h2&gt;
       &lt;p&gt;Some random text here&lt;/p&gt;
     &lt;/div&gt;
     &lt;div class="item__img"&gt; 
       &lt;p&gt;Some random image here&lt;/p&gt;
     &lt;/div&gt;             
  &lt;/article&gt;
  </code></pre>
  
  <p>and the part that I possibly messed up something, I mean Java script:</p>
  
  <pre><code>&lt;script&gt;
   $('#stands a').on('click', function(e) { 
    var el = $( e.target.getAttribute('href') );
    var elOffset = el.offset().top;
    var elHeight = el.height();
    var windowHeight = $(window).height();
    var offset;
  
    if (elHeight &lt; windowHeight) {
      offset = elOffset - ((windowHeight / 2) - (elHeight / 2));
    }
    else {
      offset = elOffset;
    }
  
    $.smoothScroll({ speed: 700 }, offset,
  
  
          afterScroll: function() {
              el.jrumble({
                      x: 4,
                      y: 0,
                      rotation: 0
              });
  
          }
      });
    return false;
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm trying to use the jRumble script that I found <a href="http://jackrugile.com/jrumble/" rel="nofollow">here</a>. 
  I would like to achieve an effect that after clicking one of the links from the menu, the whole page scrolls down to the selected div and it vibrates for 2-3 seconds. What am I doing wrong here?</p>