
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.
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
<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!