By default, when you apply an effect to a layer, the effect is active for the duration of the layer. However, you can make an effect start and stop at specific times or make the effect more or less intense over time by using keyframes or expressions or by applying the effect to an adjustment layer.