iOS Android Material Design Hierarchical Timing using UICollectionView

后端 未结 3 1432
不知归路
不知归路 2021-02-08 06:20

I want to do the animation introduced by Android Material Design Hierarchical Timing in iOS using UICollectionView

Lets say its a collectionView, and resizing the view i

3条回答
  •  青春惊慌失措
    2021-02-08 06:58

    Something like this should work. Random pieces thrown together, I know.

    Here's a very well done pen of what you're describing. In it you'll find that the timing function in question is the curve, defined in CSS as:

    cubic-bezier(0.650, 0.045, 0.405, 1.000)
    

    Knowing the timing function, you can implement this animation in iOS. Here's a link to another question -- it shows how to pull off custom animations and is very well explained.

    Custom timing functions in iOS

    May take some simple math, but this should help! ...i hope.

    cheers

提交回复
热议问题