You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add an delay between the transition. For now it seems to be an endless animation and I would like to add a small delay between each gradient.
The text was updated successfully, but these errors were encountered:
This is definitely possible! It's what the group parameter in slide(_:_:) is designed for. This will give you access to the CAAnimationGroup that's later added to the layer.
Your code will look something like this:
skeletonCell.slide(to:.right){ group in
group.beginTime =CACurrentMediaTime()+ 0.2
return group
}
I'm not entirely sure about the delaying logic, you should double check that! Also, I'll probably change the function signature to (CAAnimationGroup) -> Void in the future.
First of all thanks for this great project!
Is it possible to add an delay between the transition. For now it seems to be an endless animation and I would like to add a small delay between each gradient.
The text was updated successfully, but these errors were encountered: