Creative Tip: Transparent Gradients in Illustrator.

Update: Illustrator CS4 now adds easy transparent gradients! We have a video showing the new Illustrator CS4 Gradient Annotator in action. If you are using an older version of Illustrator, read on for the tip below.

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.

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.

Popularity: 11% [?]

55 Responses to “Transparent Gradients in Illustrator.”

  1. Claudio Says:

    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 … :)

  2. bruzed Says:

    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?

  3. cristel Says:

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

    thanx so very much!

  4. joey Says:

    Great tip, been searching for it all day.

  5. Rich Says:

    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.

  6. Luis Ribeiro Says:

    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

  7. neural Says:

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

  8. Leon Says:

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

  9. Alex Says:

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

  10. Adaptiv Media Says:

    Thanks for sharing this solution. I couln’t find any way of doing this and it has left me feeling blank for a long time now. The feature is kind of hidden but…

  11. chrander Says:

    Great information and great tutorial. I just wish Adobe made it easy like Photoshop. It’s vastly more intuitive. Heck, Flash can do it! Ca’ mon’, Adobe, I expect better.

  12. Jeremy I Fagergren Says:

    Another thing that wasn’t mentioned here, but I had to figure out on my own. If you want to do that reflective text look that’s been going around, you have to first make the reflected text into Outlines, and THEN select both the outlines and the colored (usually black or white) box on top and make the opacity mask.

  13. Gurpreet Says:

    I am a graphic designer. Transparent Gradients in Illustrator is realy helpful for me

  14. Kanchana Says:

    Oh…… Thanks a lot…. Im finding this since long time. you learn me this in one second. Thank you so …. much…

  15. Joanne Says:

    I set up a file that was to be printed in one color (yellow) onto a dark colored t-shirt. There was a gradient in it that went from 100% yellow to white because I didn’t yet know how to make the gradient go from yellow to transparent. They said it didn’t work. That it “turned white”. Since they were only printing one color yellow shouldn’t it have just printed the yellow and the white wouldn’t have been a problem ? Would this opacity mask you’re talking about have worked with this file for a one color print on a t-shirt. I know some of these “tricks” that achieve what you want on screen don’t always translate well in printing.

  16. Ben Says:

    Thanks, very helpful.

  17. Barratt Says:

    This is probably a stupid question, but how do you save this as a gif? When I go to save for web, all it show is the gradient fill.

  18. I am the Master! « Data Lounge Says:

    [...] do this in photoshop but this was an Illustrator document. So I googled it and found a way to do it here. I had to read it a few times to understand it but still after 4 tries I got the logo to fade to [...]

  19. CreativeTechs Tips » Illustrator CS4 - Gradient Annotator. Says:

    [...] of our most visited tips over the years is how to make Transparent Gradients in Illustrator CS3. Well, in Illustrator CS4, gradients and transparency have both become MUCH easier with the new [...]

  20. Illustrator CS4 - Gradient Annotator. « Michal Korecki Weblog Says:

    [...] of our most visited tips over the years is how to make Transparent Gradients in Illustrator CS3. Well, in Illustrator CS4, gradients and transparency have both become MUCH easier with the new [...]

  21. Brad Webster Says:

    In my Illustrator CS3, when i use a simple gradient between 2 colors there appears to be a strange gray cloud where the colors should cleanly merge. In my AI 9.0 neer had a problem. Is this just me or has anyone else noticed this? I have adjusted the color stops as well as the threshold point in the middle…Very strange and frustrating.

  22. Azmeer Says:

    Joanne, in order to get gradients printed properly, you must Flatter them. This combined all layers concerned to make one object that is printer friendly.

  23. Zahid Says:

    Awesome and more awesome way for transparent gradient.
    Thanks.

  24. Robert Says:

    Not to sound negative, but why would a designer at Pixar not know how to do this? This is a pretty basic technique in Photoshop. Masking is used by intermediate to high-end designers constantly. However, this is a great tip if you’re learning how to mask…very applicable to real-world use.

    Good job!

  25. Craig Swanson Says:

    Robert, you said that “this is a pretty basic technique in Photoshop” — Yes it is. Masking is pretty straight forward in Photoshop. But it was certainly not basic in Illustrator CS3 or earlier, which is what this tip was about.

    Now, if you have Illustrator CS4, Adobe has made transparent gradients MUCH easier. This video covers those new features:

    http://creativetechs.com/tipsblog/illustrator-cs4-gradient-annotator/

  26. Pedro Says:

    I have the same problem as Brad Webster explained… “Strange gray area” between black and any color… :,( Anyone? Please? Pretty please?

  27. James Says:

    Well, my target never seems to be fully transparent, even where the mask is black … almost, but never quite there. Very annoying. Any help on this folks?

  28. Matt Says:

    Using CS3 and getting same as James ‘target never seems to be fully transparent’. Gradient mask goes from white to black but back areas are not completly masked…? Maybe this is a CS3 thing…

  29. sasdaman Says:

    I’m new to illustrator having used Photoshop for about 2 – 3 years! I cannot understand why everything is so much more differcult to achieve similar or same effects in PS!

  30. Joanne Says:

    Thank you Sasdaman.
    Thank you for saying that.

    I have always found Illlustrator to be extremely time consuming.
    Anything I try in Illustrator takes sooo much longer than it would in other programs.

  31. Dan Says:

    Thank you! I was ripping my hair out the other day trying to do this. I was like “In photoshop it’s like 3 clicks! Are you trying to make me flip out!?”

  32. Jeff Says:

    Thank you! That was a huge help.

  33. Rhonda Says:

    I cannot believe it was that simple. Thank you so much. You’re a life saver.

  34. Anne Says:

    And what do I have to do that this thing works in svgt-format also? Anybody?

  35. Adobe Illustrator CS4 Says:

    Adobe Illustrator CS4 …

    Interested in Adobe Creative Suite? This is a weekly newsletter for creative professionals who use [...]…

  36. Naomi Says:

    Hi, I am new to all of this, I was wondering if there is any way you can create a new gradient and then save it. Thank You

  37. elena Says:

    Thank you so much for this tip. I am a graphic designer and this tutorial really helps…

  38. safelypinned Says:

    this is awesome!!!! googled this tutorial and found this. good job.

  39. iPhil Says:

    Is there any way to get the trasparent part to stay trasparent when putting the illustrator .eps file into Quark? I at the moment where it should be transparent it is filling in white.

    Thanks though.

  40. RP Says:

    so much thanks.
    (personal tough, Adobe made clear gradients way too difficult in .ai, lol) Glad I found your link into a flash forum.

  41. Hay Says:

    Thank you!! Now my life is complete!

  42. gillesdeclercq Says:

    thanks a lot for the tip

  43. Aaron Says:

    “Using CS3 and getting same as James ‘target never seems to be fully transparent’. Gradient mask goes from white to black but back areas are not completly masked…? Maybe this is a CS3 thing…”

    I think the problem you and James are having is your color space. If you are working on an RGB document, make sure the black in the gradient is in RGB. The same goes for the CMYK color space – make sure the black in the gradient is 100% K only. If you have it wrong you’ll always get about 91% black. Hope that helps!

  44. xmuzx Says:

    Thanks!

  45. Appel Says:

    Very useful solution. I have another one. I select the gradient, then the ‘Transparency’ palette and ‘Multiply’ the gradient – just like in Photoshop. Save as .ai and it works fine in InDesign – just as the above opacity mask solution.

    Unfortunately QuarkX is not good with .ai files! I use to drag the .ai file to Photoshop (transparent background) – save as psd-file in the size you want to use – or bigger. This works with QuarkX, but you now have a bitmapped file…

    OBS! – using the ‘Multiply’ transparency solution in Illustrator will not work in QuarkX though – yet. So it is only for InDesign.

  46. mines Says:

    Gracias!, por fin se hacerlo! ^^

  47. Ben Says:

    Thanks, this worked perfectly.

  48. Denise Says:

    Thanks! It really helped. Thanks for the tutorial!

  49. Dana Says:

    Does this work for CS2?

  50. Mihiran Nadeesha Says:

    Thanks. It was given big help to me. great work.

  51. Mihiran Nadeesha Says:

    yes i was done with CS4..

  52. Mihiran Nadeesha Says:

    it is work with CS4 and CS2

  53. UV Studio Says:

    Thanks – learned something new today!

  54. suresh Says:

    good well ya …..

  55. Piliz Says:

    Thankyou very much! :-*

Leave a Reply