So I started making animated gif images for a little side project lately and encountered a problem for which I couldn't find any information online.
Basically, since the subject in the future gif is diagonally moving across the image, I moved the layers sideways on some frames to negate the horizontal moving and keep the subject in the center (more or less). I did this because I wanted the width of the image to be smaller than the height and keep the subject always in the center. I don't know if there is a better way for "motion tracking" in photoshop (It would be nice if I knew one though), because I'm pretty new to generating animated images.
After that process, in most frames one side of the image was empty, since i moved the layers in the direction of the other side. So I finally tried to crop the image to finish it and encountered the problem: those empty parts of the image remained, they somehow moved themselves to the new set broders of the image, and through this, they deleted parts of the actual subject I wanted to portrait. This was somewhat unexplicable to me, because I always thought cropping an image would completly ignore the left out parts of an image and delete them. I hope what I'm saying is not to hard to understand. English is not my first language and I dont know any photoshop jargon.
So my question is basically how do you crop a gif correctly after moving some of the layers, and is there something I might have overlooked.
I hope you can help me with this, and otherwise I'm sorry for having wasted your time.
EDIT: to clarify the problem a little bit, imagine a video in landscape format video which I imported in photoshop with the import "video frames to layers" option. Now, the subject to which I want to limit the image to moves from the upper right corner to the under left corner (not all the way though). My final product should be a portrait format animated gif which should always have the subject in the center. So what I did was moving the layers a little bit to the right, every following frame a little bit more. Thus, in the left side of the canvas appears a thin line of "empty nothing" (I dont know how you call this in photoshop jargon), which gets thicker with every subsequent frame, because the layers are moved to the right, so there is no "image" in that part of the canvas. Finally I had the subject centered in the canvas on every frame, so I tried to crop out the rest of it (right and left side, I left the height as it was) to have only left the center of this image, with the subject on it. But this didnt work out as planned, because the empty part on the left side was in the now portrait format image as well. Basically, the left side of the final gif is empty in the same way the uncropped image was, deleting important parts of the final product. I hope this explains it.