Build Internet has a brand new theme, and that's only the beginning. Read the full story or hide this bar

Warping Drop Shadows to Give Depth

Warping Drop Shadows to Give Depth

Even though CSS3 has brought a lot to the table in regards to drop shadow effects, there are still plenty of reasons to use image alternatives. The drop shadows generated by CSS3 are relatively uniform, and don’t deviate much past size and transparency. In some cases, you might want to give a page some extra depth.

I ran into a similar situation in a recent client project, and decided to use a recent trend of warping drop shadows to help add some extra excitement to the page. You might have seen similar effects in other tutorials involving deleting a circular section, but this method will keep the edges from being too sharp. It also allows you to work with non-rectangular shapes because all points are editable in the warp tool’s grid.

Setting Up

Start a new Photoshop document. The size doesn’t matter because all of the elements will scale accordingly. I recommend changing the background color to something that will make a white box stand out, but not drown out a black shadow. We’ll use a light blue for the example. Draw up a white box and we’re ready to start on the shadow.

Before any shadows

Add the Shadow

You might be tempted to use blending options right now. Resist the urge, because we’re aiming for something much more distinct.

Start by making a new layer that is positioned between the background and content box from the previous step. On the new layer, draw a rectangle selection that is just slightly smaller than the width of the content box. Fill this area with black.

Fill selection with black

With the black rectangle layer selection go to Filter>Gaussian Blur and set the radius to 6 pixels.

Blurring the Shadow

Love the Warp Tool

Photoshop’s warp tool is wildly underrated. It’s good for much more than messing around with celebrity faces or other random attempts to doctor photos. It’s particular good at taking specific shapes and molding them into another shape without ruining the appearance. This point is exactly why we’ll use it to shape our new drop shadow.

With the shadow layer selected, head to Edit>Transform>Warp to bring up the warping grid. Use the handles on this control to give a curvature to the blurred rectangle. Feel free to shift the layer around to get the best positioning.

Warp grid in action

Once the shape is set, simply lower the layer’s opacity down to about 15% and you’ve got a finished shadow that simulates a subtle page curl. Nice work!

A warped drop shadow

Wrapping Up

There you have it, a drop shadow that gives content areas a feeling of “coming off the page” depth. As you might have guessed by now, this is a perfect footer background for content areas throughout the page. Not bad!

Wordpress.com stats not installed! Posted Friday, June 18th, 2010 / Back to Top

I this post. Tweet
SPONSOR

47 Comments 5 Mentions

  1. Chris Collins Author Editor

    Delightful.

    June 18, 2010 · Reply

  2. Robert van Hoesel Author Editor

    Nice and fast tip, didn’t think of solving this way..

    June 18, 2010 · Reply

  3. Design Informer Author Editor

    Nice tip! Great for beginners. :)

    I’ve been using this technique for years!

    June 18, 2010 · Reply

  4. Mark Stoecker Author Editor

    Great effect! I like. Subtle and simple to make, yet powerful.

    June 19, 2010 · Reply

  5. Web Risorsa Author Editor

    Nice explanation for starters.

    June 19, 2010 · Reply

  6. Richie Author Editor

    Is such a warped shadow effect possible using CSS3?

    June 19, 2010 · Reply

  7. Gareth Author Editor

    I’ve not tried it, but I think you could probably simulate the effect in CSS3 with rounded corners, inset box shadow and a negative top margin on a div (or some other element) below the element to be shadowed.

    June 19, 2010 · Reply

  8. Anupum Author Editor

    hey if you use photoshop CS2 or above this is a nice way.
    1. Use the drop shadows in blending options
    2. then in the layer right click on the fx (beside the layer name and thumbnail)
    3. click on create layers

    By doing this the shadow and object layers get separated

    4. Now you can warp the shadow

    you get warped shadows easily and more realistic :)
    *just an add

    great tutorial buddy

    June 19, 2010 · Reply

  9. Daniel S Author Editor

    Transparent Shadows ARE possible with CSS using the rgba() keyword (not supported in all browsers). Just for info.

    Greetings from Germany,
    Daniel

    June 19, 2010 · Reply

  10. Jerome Gravel-Niquet Author Editor

    I did it with CSS3 and I blogged about it: http://jgn.heroku.com/2010/06/19/warping-drop-shadows-with-css3/

    June 19, 2010 · Reply

  11. Walter Earnshaw Author Editor

    Good tut, but for those with a lack of money to buy PhotoShop,
    could this ‘other’ paint program produce a similar effect?

    June 19, 2010 · Reply

  12. gitr Author Editor

    @Walter: I think it can be done with GIMP too
    http://www.gimp.org/

    A version for windows is available too.
    Cheers.

    June 20, 2010 · Reply

  13. Ilie Ciorba Author Editor

    Looks really nice, like a sheet of paper on the table, thank you!

    June 20, 2010 · Reply

  14. dmANDERSON Author Editor

    That is definitely a nice way of adding depth. Bravo.

    June 20, 2010 · Reply

  15. Stefan Rynkowski Author Editor

    Good tut. In my opinion it works very well with a semi-transparent white to gray(silver) overlay. Very quick tip congrats !

    June 21, 2010 · Reply

  16. Boba Author Editor

    Awesome effect, thanks Zach.

    June 21, 2010 · Reply

  17. Zach Dunn Author Editor

    @Jerome

    Hats off to you sir. That’s very well done.

    June 21, 2010 · Reply

  18. Ardit Author Editor

    So simple, love it

    June 23, 2010 · Reply

  19. Michael Szczepanski Author Editor

    This is a much easier way. Thanks!

    June 23, 2010 · Reply

  20. habieb Author Editor

    super duper simple, great tutorial for beginner

    July 11, 2010 · Reply

  21. Fyn Author Editor

    nicely done!
    helped me and looks good :)

    July 14, 2010 · Reply

  22. Max Luzuriaga Author Editor

    Really nice! If only there was a way to do this using CSS3…

    July 22, 2010 · Reply

  23. Jwaldeck Author Editor

    @Max, @Jerome posted this awesome link http://jgn.heroku.com/2010/06/19/warping-drop-shadows-with-css3/ on how to achieve that with CSS3.

    July 28, 2010 · Reply

  24. Peter-Paul Rijsdijk Author Editor

    Nice tutorial, very helpfull

    August 18, 2010 · Reply

  25. subeesh Author Editor

    verry nice

    September 3, 2010 · Reply

  26. subeesh Author Editor

    verry nice and fentyastic

    September 3, 2010 · Reply

  27. ectopmall Author Editor

    Back in March, we introduced wholesale nfl jerseysyou to the Nike 78 project.

    September 15, 2010 · Reply

  28. Jeremy Author Editor

    Brilliant little tutorial! Takes 10 seconds and gives big pay-off in design.

    @Anupum – I actually agree. Tried this and it does seem a bit more ‘natural’. Thanks for the tip.

    September 16, 2010 · Reply

  29. Mike Author Editor

    I tried it both ways, the straight tutorial, and Anupum’s variation, and they’re both very useful. Best when it’s subtle…

    October 6, 2010 · Reply

  30. amanda Author Editor

    you are amazing! I have been trying to figure out how to do this forever. Never knew what to search for and stumbled across this when searching for alternatives to drop shadows. Thanks so much for sharing!!

    October 7, 2010 · Reply

  31. Hiren Khambhayta Author Editor

    Excellent, was searching for the same.

    October 28, 2010 · Reply

  32. Tom Durkin Author Editor

    Wanted to know how to do this for a LONG time and finally found this,

    Thank you so much, awesome tutorial, nice and simple to follow

    Tom

    November 4, 2010 · Reply

  33. Ivor Author Editor

    Actually CSS3 can do it ;) – http://jgn.heroku.com/2010/06/19/warping-drop-shadows-with-css3/

    November 8, 2010 · Reply

    • Zach Dunn Author Editor

      This tutorial was a lesson in why I’ve learned to never say “impossible” regarding web technologies. Thanks for the link!

      November 8, 2010 · Reply

  34. CraigSnedeker Author Editor

    It’s possible in CSS3 :) I’ve done it before (not sure if anyone else posted this)

    http://igeekygirl.com/css3/

    November 11, 2010 · Reply

  35. CraigSnedeker Author Editor

    Opps reading the comments I can see other people already got to the point (Darn why can I never be the first? Haha!) Sorry about that.

    Nice tutorial though!!

    November 11, 2010 · Reply

  36. Simon Facciol Author Editor

    Thanks for this simple tutorial and for the CSS3 method :)

    December 20, 2010 · Reply

  37. lounis Author Editor

    very nice, thanks verry much =)

    May 28, 2011 · Reply

  38. mattnguyenn Author Editor

    wow, i always wanted to know a easy way. thanks!

    July 15, 2011 · Reply

  39. Tim Author Editor

    I would recommend adding some shading to the corners of the “paper” itself. Just putting a warped shadow below a flat white square does not give the impression that the flat square is curved, but rather that there is a curved shadow for no real reason. I’ve seen this effect on too many sites now and it is becoming like lens flare to me.

    October 15, 2011 · Reply

  40. Shabu Author Editor

    Coolll.. Love it

    December 1, 2011 · Reply

  41. Vipul Anand Author Editor

    Amazingly CSS does page lifted effect with drop shadow quite effortlessly take a look at this here

    http://anandvip.blogspot.in/2012/01/css-drop-shadows-without-images.html

    January 31, 2012 · Reply

  42. sachin Author Editor

    thanks
    nice and simple trick
    i expected it would be a big job.
    thanks

    December 3, 2012 · Reply

  43. sina Author Editor

    wowwwww!
    u don’t know how much i need this tutorial!!!
    tanx bro!

    February 8, 2013 · Reply

  44. hrishikesh Author Editor

    Thanks for this tut.
    It was really simple and stupid thing that I always love.
    Thanks

    March 25, 2013 · Reply

  45. caitlyn Author Editor

    thx guy ily ………….. xD

    June 4, 2013 · Reply

 

Join the Conversation

Back to Top / Comment RSS

2012 Build Internet. Created by One Mighty Roar. Icons by Komodo Media. Back to Top