Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

Beautify Sidebar Link List with Jquery Effect


Hi! After few days ago I wrote about TipTip Jquery, Today I'll share about beautify sidebar link list with Jquery. Usually we have many link list in the sidebar, like categories, recent posts, or recent comments. We will add an effect to make this list prettier, if we hover to a link, the link will move smoothly to right and will back to original position then. This effect doesn't use a Jquery plugin, but we directly use the function in the Jquery framework. So, don't wait anymore, let's go to the steps!

Javascript

Add this following code before </head>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>

If you have already add this code, you no longer need to add this code again.

Then, add this following code. This is the core of this tutorial.

<script type="text/javascript">
$(document).ready(function(){
$('.widget-content ul li a, #panel ul li a').mouseover(function(){
$(this).animate({paddingLeft:"20px"}, { queue:false, duration:250});
});
$('.widget-content ul li a, #panel ul li a').mouseout(function(){
$(this).animate({paddingLeft:"0"}, {queue:true, duration:250})
});
});
</script>

Some Options

  • Change 250 to set the animation speed (in millisecond)
  • Change 20 to set the animation distance (in px)
  • If not work, try to change .widget-content with .sidebar

Demo

That's all. See you!!

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • Email

Related

May 23, 2010 Ritesh Sanap Blogger Tutorials Jquery

Post navigation

Previous Previous post: Stardust - Blogger Template
Next Next post: Facebook Like or Recommend Button For Blogger

Currently Trending

  • How to download Specific parts of YouTube videos
  • Windows Vista CD key
  • How to Increase Dropbox upload speed
  • How to add Attribution widget in blogger
  • How to download torrents without utorrent
  • Make Your CD Write Protected
  • HORIZONTAL AND VERTICAL SPACING
  • Free Demonoid Invitation Code
  • Add Three New Widgets At The Bottom or Header Of Blogger/Blogspot Blog
  • How to Delete Feedbacks from JetPack Contact Form

Random Posts

Free Online Virus and Malware Scan

June 9, 2010 By Ritesh Sanap 2 Comments

Some of Greatest Brand Names on the Net. Where Do these Come From ?

July 19, 2008 By Ritesh Sanap Leave a Comment

How to Disable the Zoom Level Option in Internet Explorer

May 22, 2010 By Ritesh Sanap 2 Comments

Satoshi Blogger Template

July 21, 2010 By Ritesh Sanap 5 Comments

MS-DOS and command line overview

April 30, 2009 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure - WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? - WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap - WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva - Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2019 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean

This website uses cookies to improve your experience. We'll assume you're ok with this, If you do not want to accept cookies, adjust your browser settings to deny cookies or exit this site. Accept
Privacy & Cookies Policy
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.