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
I want to animate page content in and out based on the "in-view amount" of the page.
I know that f7 has an event that I can listen to: 'swipebackMove'. But it only returns the progress while the user actively swipes. When they let go, the animation breaks. I would like to get that decimal between 0 and 1 regardless of their swiping action.
My solution would be to listen to the position of the current page and its relation to the window's inner width. Not very elegant.
Also, one might not want the actual amount that page is in view, which works for iOS, but the animation progress (or 'transition progress'), as for MD, the distance that the page travels is way shorter.
The text was updated successfully, but these errors were encountered:
I want to animate page content in and out based on the "in-view amount" of the page.
I know that f7 has an event that I can listen to: 'swipebackMove'. But it only returns the progress while the user actively swipes. When they let go, the animation breaks. I would like to get that decimal between 0 and 1 regardless of their swiping action.
My solution would be to listen to the position of the current page and its relation to the window's inner width. Not very elegant.
Also, one might not want the actual amount that page is in view, which works for iOS, but the animation progress (or 'transition progress'), as for MD, the distance that the page travels is way shorter.
The text was updated successfully, but these errors were encountered: