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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:07:30+00:00 2026-05-24T05:07:30+00:00

I have recently started to play with RaphaelJS. I’m trying to find the best

  • 0

I have recently started to play with RaphaelJS. I’m trying to find the best easiest way to animate an heterogeneous group of Raphael objects, or a way to something similar.

I’ve set up a basic example of what I’m trying at http://jsfiddle.net/maraujop/Prckt/

The thing is that I want the sniper scope to follow the target (the blue circle) after somebody clicks on it. Right now the sniper scope goes to where the target is when clicking, but doesn’t follow.

Of course I could animateAlong the sniper scope using the same route as the target (would be a hack, not a universal solution), but imagine the target moves random, I would need to redraw the sniper to where the circle moves.

It looks like I can’t use animateAlong in onAnimation (might be too much?). So I’m guessing that the right way to do this would be turning sniper into one single SVG path and use attr or translate.

Can someone shed some light on this? Thanks

  • 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-05-24T05:07:33+00:00Added an answer on May 24, 2026 at 5:07 am

    One way I’ve found to solve this is create a group of Raphael objects and move them independently in the same direction.

    Second way is to use a relative path, and update its path to move it, using a timer to redraw the path.

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

Sidebar

Related Questions

I have recently started to use Twitter Bootstrap and trying to understand how it
I have recently started teaching myself C# and Asp.net. I am trying to build
We have recently started to see this exception while running the play framework in
I have recently started on MongodDb and I'm trying to explore on replica sets
I have recently started to explore the way that the C++ runtime library is
I have recently started learning spring security and trying to incorporate it into my
Recently I have started to play around with Namespaces in PHP, I am not
I have recently started playing with databases, trying to teach myself using examples. I
I have recently started to play around with Haxe and Three.js. How do I
Have recently started working with Sitecore 6.2. Is there a way to preserve code

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.