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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:19:34+00:00 2026-06-07T06:19:34+00:00

Is it possible using the raphael.js or paper.js to draw a line with an

  • 0

Is it possible using the raphael.js or paper.js to draw a line with an arrow that moves with some animation morphing?

enter image description here

  • 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-07T06:19:37+00:00Added an answer on June 7, 2026 at 6:19 am

    It’s not entirely clear what you’re trying to do, but the short answer to your question is almost certainly yes. I can only speak for RaphaelJS, but it’s easy to tell Raphael to morph from one path to the other. Consider this fiddle and that fiddle, both of which rely on using raphael’s animate function to modify the path element over time, often in conjunction with one or more transforms. The only caveat is that raphael’s built-in path morphing doesn’t always unwind in the way you might expect or desire. But in an attempt to animate something like the figure above, I’d do something like this:

    var canvas = Raphael( 0, 0, 320, 240 );
    
    var path1 = "M0,120 h300 l10,-10 l10,10 h100";
    var path2 = "M0,120 h100 l10,-10 l10,10 h300";
    
    var path = canvas.path( path1 ).attr( { stroke: 'black', fill: 'none', 'stroke-width': 1 } );
    
    path.animate( { path: path2, stroke: 'red', 'stroke-width': 3 }, 3000, function()
                  { path.animate( { path: path1, stroke: 'black', 'stroke-width': 1 }, 3000 ); } );
    

    You can see this in action here.

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

Sidebar

Related Questions

Should this be possible using c# 4 and VS 2010? I am doing some
Is it possible (using plugin or maybe some config option) to make javascript error
Is it possible (using HTML only) to display select with option s that span
I am using Raphael-js to position text on a canvas. Is it possible to
I'm just wondering is that even possible using forms and PHP? Thanks.
I'm trying to draw rectangles with the mouse using the Raphael 2+ library (note:
I'm using Raphael to draw a figure. The figure is very large, so the
is it possible using jQuery and CSS to split a div in two, and
Is it possible using CAML to limit the amount of results returned. Say for
I know this is probably possible using Streams, but I wasn't sure the correct

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.