Ken Burns effect on iPhone

Are there any existing approaches to how to apply Ken Burns slideshow effects (see javascript demo : slideshow demo site ) to view?

Yours faithfully...

+3
source share
2 answers

The basic concept is to customize the change you want to apply to yourself, and then commit the animation.

[UIView beginAnimations:nil context:NULL];

[UIView setAnimationDuration:5];
[UIView setAnimationTransition: ...zoom, pan, whatever... cache:YES];

[UIView commitAnimations];

Cheers niels

+1
source

I don’t think there are ready-made APIs, but you can easily create Ken Bernshish effects by animating the border attribute of UIImageView. Check out the animation API on the UIView. Only a few lines of code will do this.

+1

Source: https://habr.com/ru/post/1711433/


All Articles