I am very excited because for this post, I have created my first ever screencast that demonstrates how easy it is to actually create the drop shadow effect with JQuery. In fact, we will be using four to five lines of JQuery code to achieve this cool effect. The shadow can be applied to just but anything not just the images. See the shadow effect in action first. Let’s see the idea behind this effect.
.
The Idea?
Absolute positioning in CSS is extremely useful allowing you to position elements just about any place on the page. This is exactly what we are going to do. For each element that is to be shadowed, we create a div and position it behind that element to create the shadow effect. The height and width of each created div is same as that of element which is to be shadowed. Note that all of that is done from JQuery code.
.
Screencast
In this video, I create the shadow effect from scratch. I recommend you to see the video in full screen for better viewing.
i saw your blog..and i feel u are the dam good web developer,i have seen.
i am using open inviter but it only grab gmail contacts.it not work for other.pelese help me.
my mail id id
panigrahi.sushant907@gmail.com
I have added a comment, you can check that out on SO. Thanks
Nice tutorial, very useful tip. Thanks.
Thanks, hope to see you again 🙂
Pingback: Creating Drop Shadow jQuery Plugin « Sarfraz Ahmed's Blog
Nice Work behind CSS dude…
I’m also having one Good Example..
http://sms2everyone.com/
Just check it out….Hope you’ll like It !
Very clever, could you do one with a gradient without images?
I want to test your script, but your download-link is dead
@Alex: The link is updated 🙂
perfect, thx!!!
Pingback: jQuery Drop Shadow Plugin
Nice trick. Thanks!
Good one, Thanks
Pingback: div shadow with jquery | Easy jQuery | Free Popular Tips Tricks Plugins API Javascript and Themes