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.

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.

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.

Your screen should now look something like this:

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.

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:

If you look back in the Transparency palette, you'll see a new opacity thumbnail appears to the right of your selected shape.
Step 4: Test the results!
Finally, you can test the opacity by drawing a solid box underneath your shape.

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.

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

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.

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.
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 … :)
Posted by: Claudio | November 2, 2006 12:56 AM
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?
Posted by: bruzed | November 5, 2006 07:06 PM
this is just awesome. several times i've changed my design because i didn't know how solve this
thanx so very much!
Posted by: cristel | November 20, 2006 10:43 AM
Great tip, been searching for it all day.
Posted by: joey | December 6, 2006 02:26 PM
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.
Posted by: Rich | January 15, 2007 11:16 PM
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
Posted by: Luis Ribeiro | January 22, 2007 02:45 AM
remember to reclick on the top layer after selecting the bottom layer, before applying opacity mask. that'where i was always going wrong.
Posted by: neural | February 1, 2007 08:33 PM
Stunning!!
After seven years of using illustrator and all is revealed. What a tip! My life is complete.
:D
Posted by: Leon | February 8, 2007 09:03 AM
It really saved me a lot of time! So thanks!
Posted by: Alex | February 28, 2007 06:49 AM