Home arrow JavaScript arrow Building Dynamic Shadows for an Image Gallery with JavaScript and CSS
JAVASCRIPT

Building Dynamic Shadows for an Image Gallery with JavaScript and CSS


If you're looking for a way to get realistic shading effects on your web site with some JavaScript and CSS, you've come to the right place. This third part of a three-part series applies what you learned in the first two parts to adding dynamic shadows to a simple image gallery.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
July 13, 2009
TABLE OF CONTENTS:
  1. · Building Dynamic Shadows for an Image Gallery with JavaScript and CSS
  2. · Review: key concepts for creating dynamic shadows
  3. · Working with an image gallery
  4. · Source code of the image shading application

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building Dynamic Shadows for an Image Gallery with JavaScript and CSS
(Page 1 of 4 )

If you're a web developer who frequently builds JavaScript applications, then you know that it can be truly useful for extending the behavior of server-side programs.

This series of articles applies this concept from a practical point of view. It uses copious code samples to show you how to use the functionality of client-side scripting along with some CSS styles to incorporate pretty realistic shadows into selected elements of a web document.

And speaking of realistic shadows, you'll probably recall that during the previous tutorial of this series, I demonstrated how to build them very easily by using some DOM scripting and CSS, in this way adding a quite attractive shading effect to a selected DIV.

As you learned in that particular article, this technique consists of creating via the DOM a gray-colored DIV (the shadow), and then positioning it absolutely behind a targeted DIV. Of course, the end result of this overlapping process is an appealing shading effect, achieved with minor trouble.

In addition, it's worth mentioning here that this DOM-based technique not only uses unobtrusive JavaScript to build the shadows, but it's capable of degrading gracefully when scripting has been disabled on the browser.

Hopefully you're now very familiar with building dynamic shadows using the DOM and CSS, but if you're anything like me, then you may want to see how these shadows can be utilized in a real-world example. Thus, in this final chapter of the series I'm going to show you how to incorporate them into graphics that belong to an existing image gallery. Sounds pretty interesting, right?

Well, now that you've been introduced to the subject of this article, it's time to learn how to add dynamic shadows to a simple image galley. Let's jump in!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials