LSAnimator icon indicating copy to clipboard operation
LSAnimator copied to clipboard

这种重复动画咋写?

Open vitasapple opened this issue 3 years ago • 0 comments

我目前是这样的

-(void)startFingerAni{
    LSAnimator * ani = [LSAnimator animatorWithView:self.handView];
    ani.moveXY(-20, -20).postAnimationBlock(^{
        [self endFingerAni];
    }).animate(0.35);
}
-(void)endFingerAni{
    LSAnimator * ani = [LSAnimator animatorWithView:self.handView];
    ani.moveXY(20, 20).postAnimationBlock(^{
        [self startFingerAni];
    }).animate(0.35);
}

有好一点的实现方式吗

vitasapple avatar Jun 04 '21 07:06 vitasapple