How to easily add a "rumble" shaking action to WordPress when you log in incorrectly.

This content is from 2014. The steps may no longer work.

Screenshot 2014-01-19 23.00.20

 

When logging into WordPress, if you enter the wrong username or password, it shakes back and forth with a ”rumble” sound. I found this "reluctant" feeling quite amusing, so I decided to adopt it on my own website.

https://www.coppe.jp/

I've added a subtle vibration effect when you click the text links at the top (1-8) or the ”TRACK ON/OFF” button.

It might be a simple gimmick, but it's somehow fun. HTML

It's a simple thing that only requires adding a little bit of text inside.

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
  $(function() {
    $('a').click(function() {
      $(this)
      .animate({'marginLeft':' 5px'}, 15)
      .animate({'marginLeft':'-4px'}, 15)
      .animate({'marginLeft':' 3px'}, 18)
      .animate({'marginLeft':'-2px'}, 18)
      .animate({'marginLeft':' 1px'}, 20)
      .animate({'marginLeft':' 0px'}, 20);
    } );
  } );
</script>

This will allow you to access link elements within the site (<a>The text and images within the tag elements will ”rumble” from side to side.
It's easy to install. Give it a try!