sample image

Here is my dilemma. I am making a scrolling text gif. I need the background on this gif to be transparent with a white box centered in the middle with the text showing ONLY in the white box. This means that the text needs to only show up on the box and not the transparent background.

  • 2
    Could you post an example? My assumption is that you are talking about masks but I could be wrong. If you are talking about masks, then this would be a worthwhile read. At which point you'd want to mask your text to only stay in the white box.
    – Hanna
    May 13 '13 at 15:22
  • I tried to post a sample of what i was trying to accomplish but I dont have enough reputation in the forums to be able to post an image.
    – user12702
    May 13 '13 at 15:37
  • Ive used masks in photoshop on occasion. Im not sure if it would help in this occasion. What I need is more of some way to make the text transparent when its in the blank part of the canvas, then start showing once it hits the white rectangle, scroll through the rectangle and then disappear again as it goes back into the transparent background on the other end of the graphic.
    – user12702
    May 13 '13 at 15:44
  • Just edit your question, add the image and delete the leading ! A user with more rep can activate your image for you :-)
    – Mensch
    May 13 '13 at 15:49
  • 2
    To tell you the truth, I think Johannes comment is probably the key to what im attempting to accomplish. Ive been playing with the masks and almost have it I think. Thanks everyone for your suggestions and your time. Thank you again everyone!
    – user12702
    May 13 '13 at 16:41

Johannes' comment was correct. You simply need a mask to hide the text outside the rounded rectangle.

I'm merely using your posted gif as a base. The actual Photoshop document will most likely be set up differently, but this is the basic item you need.

Highlight all but the bottom layer in the Layers Panel and group those layers (Layer > Group Layers).

Create a selection which matches the rounded rectangle. Then with the Group highlighted in the Layers Panel, and the selection active, click the little mask icon at the bottom of the Layers Panel. This will add a mask to the group.


This will then hide the text outside the rectangle. (I've increased the animation speed considerably so it can be seen better.)


When setting up the animation, I assume you have only one layer for the scrolling text and are moving it and then creating a motion tween between frames. When you do that, you want to unlink the layer and the mask by clicking the little chain icon between them. This will allow you to move the text, while leaving the mask in a stationary position.

  • 1
    Great Scott !!!!!!!!!!!!!!!
    – Bala
    May 13 '13 at 17:47
  • Brilliant! Thats exactly what it is I needed to do. I've rarely used animation in Photoshop so im not as familiar with it as I would like. I appreciate everyone's input on this immensely! Have an epic day!
    – user12702
    May 13 '13 at 17:52
  • @Bala I know, this is heavy!
    – JohnB
    May 13 '13 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.