facebookarchive / pop

An extensible iOS and OS X animation library, useful for physics-based interactions.
Other
19.66k stars 2.88k forks source link

Animation looks like have some delay when first perform. #350

Open devSC opened 7 years ago

devSC commented 7 years ago

My code:

       POPSpringAnimation *animation = [POPSpringAnimation animationWithPropertyNamed:kPOPViewFrame];
        animation.toValue = [NSValue valueWithCGRect:CGRectMake(45, 14, kScreenWidth - 45 - 10, 40)];
        [self.searchBar pop_addAnimation:animation forKey:@"frameAniamtion"];

and i'm try to add:

        animation.beginTime = CACurrentMediaTime();

but it's still not working.

When perform again, it's work fine.

anyone have the same problem?

wyp810618 commented 7 years ago

Sorry,i have no idea……

wyp_810618@163.com

From: Wilson Yuan Date: 2017-02-09 16:38 To: facebook/pop CC: Subscribed Subject: [facebook/pop] Animation looks like have some delay when first perform. (#350) My code: POPSpringAnimation *animation = [POPSpringAnimation animationWithPropertyNamed:kPOPViewFrame]; animation.toValue = [NSValue valueWithCGRect:CGRectMake(45, 14, kScreenWidth - 45 - 10, 40)]; [self.searchBar pop_addAnimation:animation forKey:@"frameAniamtion"];

and i'm try to add: animation.beginTime = CACurrentMediaTime();

but it's still not working. When perform again, it's work fine. anyone have the same problem? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.