There’s a tutorial linked below which should help you. It’s easy to achieve what you want and far more flexible if you use the size & position filter instead. The post was written when size and position only had simple key frame facilities so it’s even more useful now.