« Download "Night of the Living Dead" for free. | Main | Disable Microsoft Messenger's Security Warning. »

Transparent Gradients in Illustrator CS/CS2.

Here is a great question we recently fielded from an in-house designer at Pixar in California: "How do I fill an object in Adobe Illustrator with a gradient that goes from an opaque solid color at one end to transparent at the other end?"

Creating a gradient with transparency is so easy in Photoshop, you might assume the same would be true for Illustrator. However the process is somewhat more involved.

IllustratorGradient-Diagram.gif

The answer involves using a special Opacity Mask to add a transparent gradient to your object. Once you understand how to use Opacity Masks in Illustrator CS and CS2, the effect is easy to reproduce.

Like This Tip? Make sure you don't miss the new tips coming next week:

Weekly Email Tips — or — RSS Feed (What's RSS?)

Step 1: Create an object with a solid fill.

Use the color that you want to use in your future gradient. In this example we've drawn an orange rectangle with rounded edges.

IllustratorGradient-1.png

Step 2: Duplicate the object, and fill with a gradient.

The easiest way to create a duplicate of your object exactly on top of itself is to copy it and then paste in front. There will now be two identical objects layered on top of each other.

Mac Shortcut: Command-C, then Command-F
Win Shortcut: Control-C, then Control-F

Now, apply a gradient to the top object using Illustrator's Gradient palette (Window > Gradient). The black areas of your gradient will soon become transparent.

IllustratorGradient-3.png

Your screen should now look something like this:

IllustratorGradient-2.png

Step 3: Create an Opacity Mask.

Finally, select both objects and choose Make Opacity Mask from the fly-out menu in Illustrator's Transparency palette (Window > Transparency).

Tip: If the top object is still selected, you can choose Select > Next Object Below to select the bottom item. Then hold down shift and reselect the top item as well.
IllustratorGradient-4.png

Illustrator combines the two objects, using the top shape (the one with the gradient) as an opacity mask for the bottom one (your solid color). Leaving you with this result:

IllustratorGradient-5.png

If you look back in the Transparency palette, you'll see a new opacity thumbnail appears to the right of your selected shape.

IllustratorGradient-6.png

Step 4: Test the results!

Finally, you can test the opacity by drawing a solid box underneath your shape.

IllustratorGradient-7.png

Bonus Technique One: Adjust the transparency later.

If you later find you want to adjust the opacity of your gradient, simply select the opacity mask icon in Illustrator's Transparency palette.

IllustratorGradient-alt1b.png

Select your object (you'll now be selecting the mask version with the gradient). And change the gradient settings in Illustrator's Gradient palette.

IllustratorGradient-alt1.png

Bonus Technique Two: Multi-color Gradients w/ Transparency.

Once you have this basic technique down, you can create much more complex gradients. In the example below, we've selected our main shape (the original orange one) and filled it with a multi-color gradient from left to right. Then we switched into our opacity mask and adjusted the overall transparency gradient of our image to go up and down.

IllustratorGradient-alt2.png

Enjoy.

Source: Turns out our Pixar designer got our name off the Adobe website where our tips newsletter is featured in both the Illustrator Design Center and the InDesign Design Center resource links under "Blogs and Podcasts." Cool.

TrackBack

TrackBack URL for this entry:
http://www.creativetechs.com/cgi-sys/cgiwrap/creative/managed-mt/mt-tb.cgi/46

Comments

Thanks! I kept having that very problem … though it never came to mind to search the fly-out menu.

I like that kind of mask concept because of its great flexibility. A similar example is the trimming mask feature – though IMHO also quite well hidden … :)

Finally, I know how to do this! This was an awesome tip!! Claudio, how does the trimming mask feature work...I've never used it?

this is just awesome. several times i've changed my design because i didn't know how solve this

thanx so very much!

Great tip, been searching for it all day.

I also use black or white in a gradient where I want the transparency (e.g. the example above would be orange to white or black) and then set the layer blend to Screen or Mulltiply accordingly.

I‘m Having a serious problem with gradients in Adobe Illustrator CS. The steps keep apearing all the time. I‘ve tried to do the gradients with diferent techniques but nothing seams to work. I really need some tips.

Thank‘s

remember to reclick on the top layer after selecting the bottom layer, before applying opacity mask. that'where i was always going wrong.

Stunning!!
After seven years of using illustrator and all is revealed. What a tip! My life is complete.

:D

It really saved me a lot of time! So thanks!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Categories

Recent Tips

Powered by
Movable Type 3.2