Skip to content

这种重复动画咋写? #28

@vitasapple

Description

@vitasapple

我目前是这样的

-(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);
}

有好一点的实现方式吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions