Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8051437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:18:15+00:00 2026-06-05T07:18:15+00:00

I looked for this particular thing, because I thought it’s quite important and puzzling

  • 0

I looked for this particular thing, because I thought it’s quite important and puzzling thing, but I didn’t find anything on that matter. What I’m thinking about is time scaling in WPF and Silverlight animations.

Suppose that we have an DoubleAnimation that lasts 4s and animates a property from 0 to 100. It’s autoreversed, or there’s a complementing animation that reverses its effects, that’s not important. Let’s say that event triggering this animation is a simple MouseOver.

Here’s the problem: I hover my cursor over an element. The property gets from 0 to 100 in 4s. I move my cursor away for 1s, property gets from 100 to 75, and then I hover back. Now the property gets form 75 to 100 in 4s. It’s obvious to the user, that the animation runs 4 times slower. Is there any way to scale the time of an animation? If I would want this animation to run from 75 to 100 in 1s, how would I do that? I myself am thinking maybe of a Converter that would take four parameters (absolute beginning and end, actual beginning, and timespan for the whole interval) and then spit out the proper time. Is there any more elegant way?

I noticed that it’s generally not a problem when animations are fast. Human does not really observe the difference in speed when the animation runs in 0.2s or 0.1s, and maybe all animations should be as fast as possible to not deteriorate the experience. But please treat this question theoretically (hence no code sample). I’m just curious if there is any proper way to scale the animation time.

If there is an answer to my question somewhere over the web, please just direct me there.

Paweł

P.S. Don’t mind my english, I’m not a native speaker 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:18:15+00:00Added an answer on June 5, 2026 at 7:18 am

    I did some more research. It appears that the only good way to scale the animation time is by using MultiConverter, which takes in the boundary values (e.g. 0 and 100 from my previous example), the current value of the animated property, and the running time for the full animation (e.g. 4s in my example). Then it should calculate what percentage of the animation should be done (so if the current value is 75, and the full range is 0-100, then 25% of the animation is left), and the return value should be the aforementioned percantage of the original timespan (25% of 4s is 1s). Maybe that’s not the most elegant way to accomplish the goal, but it seems that it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have looked around but cannot find anything that answered this particular question related
This looked like a very simple question but I couldn't find the answer. How
I looked at this: Returning values from nested functions in Javascript but it did
I looked for this but i found how to use it with ScrollTo. This
I've looked at this question: Select first instance only with XPath? But if I
I have looked at this page for some time now. Amazing, really. But I
I'll preface this question with the note that I have looked at this similar
Python beginner here. I've looked around and found similar questions but can't quite cobble
Alright I am still learning my functions in php but this particular piece of
I've looked through similar questions but I'm still a little perplexed about something that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.