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 8137147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:00:13+00:00 2026-06-06T11:00:13+00:00

If I have an animating circle as in this example , is there a

  • 0

If I have an animating circle as in this example, is there a way in which it can leave a permanent trail on the canvas, of 1px solid white?

I have tried dynamically building a path, but could not get this to work.

Thanks in advance, any help would be much appreciated

  • 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-06T11:00:18+00:00Added an answer on June 6, 2026 at 11:00 am

    I don’t know why SVG gets such a bad rap compared to its country cousin, the canvas element. It is amazing how many times SVG is dismissed as inadequate or inappropriate before any serious attempt is even made to explore its capabilities.

    Please take a look at this fiddle.

    Most of this is driven by dynamic evaluation of a moving point on a path, as follows:

    function arrowline( canvas, pathstr, duration, attr, callback )
    {    
        var guide_path = canvas.path( pathstr ).attr( { stroke: "none", fill: "none" } );
        var path = canvas.path( guide_path.getSubpath( 0, 1 ) ).attr( attr );
        var total_length = guide_path.getTotalLength( guide_path );
        var start_time = new Date().getTime();
        var interval_length = 25;
    
        var interval_id = setInterval( function()
            {
                var elapsed_time = new Date().getTime() - start_time;
                var this_length = elapsed_time / duration * total_length;
                var subpathstr = guide_path.getSubpath( 0, this_length );
                attr.path = subpathstr;
                path.animate( attr, interval_length );
    
                if ( elapsed_time >= duration )
                {
                    clearInterval( interval_id );
                    if ( callback != undefined ) callback();
                }                                       
            }, interval_length );  
        return path;    
    }
    

    I challenge anyone to find a solution with HTML canvas that is more economical than this. If you are planning to add any interactivity to this widget, please consider how easy event binding is in SVG in your evaluation of economy.

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

Sidebar

Related Questions

I have a nested oredered list which i m animating using this code... var
I have a simple challenge with a background not animating. I have used this
I would like to move the circle by clicking the buttons. For Example; There
I have a recursive function for moving some circles on a canvas. Overed circle
I have a canvas object, a circle, that currently animates along a particular path,
I currently have an ImageView which i am applying a scale animation to. This
I have used this code to animate the circle along a fixed custom route
Is there an easy way to have animation overshoot its target and then come
I have this CSS3 animation that works in Chrome .circle-label-rotate { -webkit-animation-name: rotateThis; -webkit-animation-duration:.5s;
I have troubles animating a StackPanel with the VisualStateManager . VisualStateManager.GoToState() accepts a Control

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.