Within the flat design trend on the rise at the moment, especially in this world of the web, one thing that stands out is the use of long flat shadows, particularly for small UI elements and icons. These shadows have a characteristic 45º angle below the horizontal axis and a gradient color close to the background shade can be applied.
This technique is by no means new. It has always been a widely-used resource in photography to emphasize shapes and transmit different emotions to the viewer.
Build a long shadow in Illustrator
We’ll show you two different ways to achieve this long shadow finish with Adobe Illustrator. One uses thePathfinder tool and the other uses the Blend Option.
Method 1: Blend Tool
Step 1. Create forms
Step 2. Duplicate and move
First we’ll do the long shadow of the icon element. To do this, we need to duplicate the element, keeping the copy in the same position. Then we shift the same number of pixels on the +x or -x axis- depending where we want the shadow to point- and on the -y axis. (For example: x0=0 y0=0 > x1=+100 y1=-100)
This is how we achieve the characteristic 45º or 135º angle for our long shadow.
Step 3. Blend option
One of the options with this tool is to specify a high number of specified steps to keep the separation between them to a minimum, until it’s no longer visible to the naked eye.
Step 5. Change color. Gradient.
The result of the Blend option will be the long shadow. If we play with changing the color, opacity or the blending mode, we can get different effects. Applying a gradient is another valid and interesting option.
Step 6. Crop the shadow
Lastly, since we want to keep the look of the icon consistent, we want to crop the shadow to the shape of the icon or button. This is simple to do by duplicating the background shape, keeping it in the same position on top of all the other elements, selecting them all and applying Make Clipping Mask
Method 2: Pathfinder
Another very useful and effective option is to use a Photoshop action, and you’re ready to go. We found some very cheap ones, and a free one by Dlacrem which is available for download.
CSS3 Long Shadow Effect
The new functionalities of CSS3 also allow us to create long shadows automatically for web. Here are two very interesting open-source links.
Google Fonts CSS longshade Icon, by CSS DeckA Sass mixin that makes pulling off ‘long shadow design’ as easy as pie.
Long Shadow Generator, by CodepenGoogle Font flat long shadow icon in pure CSS. Created with love by @LukyVj, inspired by so many people and works over the internet
Downloable Flat Long Shadow Social Icons Kit
We can also produce this effect using 3D graphics software such as Cinema4D, 3Ds Max, Maya, etc. In this type of graphic environment we generally use light sources that simulate the sun at different times of the day or year. We can play with changing the time zone and season and see it turn orange or blue, varying the shade of ambient light. It also allows us to create the long shadow effect we’re looking at today, and to control the volume of elements. Even though we’re working in a 3D environment, we can achieve interesting effects with flat colors using a few tricks.
Soon we’ll be publishing a tutorial on how to get this kind of effect in Cinema4D. Look out for it!
- Share on Facebook
- Share on Twitter
- Share on Google
- Share on Stumbleupon
- Share on Pinterest