Create callouts w/ jQuery Sliding Boxes & Captions

Written by on October 5, 2010 in jQuery, Resources - 4 Comments
boxes2


Looking for an interesting way to add callouts to your website to attract attention and direct the user of the website to certain services?
Check out this demo to see how jQuery can be used to create “sliding boxes and captions”.

The concept behind the sliding boxes and captions is pretty easy. Check out the image below to see what’s going on. There is a div with a border and shadow which contains an image. On top of the image there is a div (the caption) which has a background color, a border, some text, links, and other elements with background images. The opacity has been lowered on the background color so the image can shine through the div.

On the default state the caption div is hidden partially out of view. When the outside div is hovered over the caption div slides up into view, giving access to all the content within it. When you move your mouse off the div the caption slides back down to the initial state.

I love using jQuery and CSS to create subtle effects on websites. I’ve been using a lot of jQuery sliders on client’s website lately, but I really like this simple effect. The original code came from the guys at Build Internet. Make sure to check them out.

I’ve created a zip file above with the demo files for your download. Download, edit, and use however you want. The code isn’t the cleanest because I was in a hurry to get the demo up, but it won’t take long for you to tighten the CSS up. Enjoy!

Sponsors

About the Author

Mike Ilsley "ilz" is a Boston based website designer, front-end developer, WordPress addict, owner of Beantown Design, and exclusive ThemeForest author. Follow him on Twitter and Facebook, and don't forget to subscribe to the WebDesign&Such email RSS feed. Also, check out his latest project, jQueryMobileShowcase.com.


  • Maanu

    Thanks you!
    This is really cool and works just perfect for my product page.

  • http://www.megabody.com Steven

    This is probably the best implemented sliding boxes that I have seen.

  • khalero

    Hello!

    This cool! I have added it in my joomla website it works goog with Firefox but does not work with Opera, Safari, Google Chrome…

    What I have to do? please help me I’m new in Jquery and didn’t find my answer in internet.

    Thanks

  • http://www.edgelessmma.com Randall Pampusch

    What a fantastic blog, I have nothing but good things to say..great color scheme.