shu223 / PulsingHalo

iOS Component for creating a pulsing animation.
MIT License
1.77k stars 240 forks source link

Reverse the rings #38

Open Milan3792 opened 7 years ago

Milan3792 commented 7 years ago

Is it possible to make rings go inwards with animation? Like there will be big rings and then it get smaller and smaller?

I tried to reverse the line numbers 133 and 134 in PulsingHaloLayer.m like below:

scaleAnimation.fromValue = @1.0; scaleAnimation.toValue = @(self.fromValueForRadius);

But this gives me weird blink effect.