Animating a gaussian blur using core animation?

前端 未结 2 1200
鱼传尺愫
鱼传尺愫 2021-02-02 01:51

I\'m trying to animate something where it\'s initially blurry then it comes into focus. I guess it works OK, but when the animation is done it\'s still a little blurry. Am I d

2条回答
  •  忘掉有多难
    2021-02-02 02:46

    If you're looking for an optimized way to animate a blur then I recommend creating a single blurred image of your view and then fading the blurred image from alpha 0 to 1 over the top of your original view. Seems nice and fast in tests.

提交回复
热议问题