Jump to content
Search Community

Dynamic timeline/tween duration

VIPStephan test
Moderator Tag

Recommended Posts

So, I have this animation. If you scroll down and click the white rectangle at the top right it will fade in/out the header nicely. The problem is that if it’s scrolled to the top all the way, the animation takes as much time as when it’s scrolled down but there is nothing to animate to, so it just looks like an unnecessary delay. Is there a way for it to adapt the duration depending on how far in it is? I. e. at the top it should be instant, if the header is faded out completely it should take, say, one second, if the header is just half transparent it should take half a second etc.?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...