-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best practice to build a multiscreen animation #10
Comments
I think your approach sounds good @applikationsprogramvara! We'd love to see what you've come up with here! If you run into any specific issues with this approach please also raise them! It sounds like text is also something that would be helpful to your application going forward, please be sure to add your voice to our feature tracker for that https://feedback.rive.app/126 |
@mjtalbot thank you for the feedback! ResultHere is the current result: stb_intro.mp4The clip contains 6 steps, each with enter and exit animations. The clip is paused after each enter animation. After user tap exit animation is played and then immediately the next enter animation. And so on. Riv-file is structured the following way:
So far I stumbled on the following things: Accessing multiple artboardsFunction for accessing artboards by name is available in the core, but is not populated to the android library (bindings_file.cpp and File.kt). It would be useful to have this function. Otherwise the clip is limited by a single artboard. Animation object touch listenersFor the implemented case it is not critical, and as mentioned in #11, it would be nice to let the user click on the button, not on the whole screen. Reset positionsDuring the experiments it was discovered, that the objects coordinates are not reset even if you reload the artboard or reopen the clip. Like it is done in https://preview.rive.app/ : by switching from design to animation mode you always have "design state" artboard. As a consequence in some combinations of multiple animations the objects can be lost / not visible on the artboard. E.g.
Although the idea is understandable and looks ok, this behavior is confusing and I would have a function, that resets the artboard to its initial state. Technical insightsHere are some additions to AnimationView that could be useful:
Rendering problemThere is a weird rendering issue. It is visible in the movie above on 0:42. Arrow becomes a check and a dot stays, on the place where arrow tip was. Stroke trim animation is used. Trim end changes from 100% to 0%. In the editor https://preview.rive.app/ animation is rendering as expected, no dot stays. Have you stumbled on such an issue? |
Here is a short feedback how the problems from the previous comment can be resolved using workarounds: Reset positions
Trim end rendering errorIf a diagonal line is animated with trim end to 0% a small portion of the line stays on the screen and can't be removed using opacity. I suppose this is a bug. To resolve that, the color of the line is changed the background color. |
Resetting artboards is now in! no more need to reload the file from scratch: #129 The stability issue for the library crashing after some reloads has also been sorted! |
I would like to build an animated introduction for an app.
This introduction will contain 5 screens / slides:
Is there any kind of best practice to implement that?
My current ideas are the following:
Is the general direction of thoughts is correct?
The text was updated successfully, but these errors were encountered: