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

  • Home
  • SEARCH
  • 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 8593543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:00:58+00:00 2026-06-12T00:00:58+00:00

i want to make an animation in javascript where an object moves on a

  • 0

i want to make an animation in javascript where an object moves on a path.
For this i need a function that returns me X/Y coordinates on the path for a given time.
The path should be a triangle with soft edges.

At the beginning of the animation it should soft move into the triangle path – but this i could solve maybe in a different function .. more important to me is the function which can return me the X/Y coordinates for the move on the triangle.

The animation should then loop endless on the triangle path.

the animation path

Are there (online) tools to create coordinates for such a animation?

Can someone help me with the function?

  • 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-12T00:01:00+00:00Added an answer on June 12, 2026 at 12:01 am

    I’d recommend something like sqrt(x²+y²)=2.5+sin(atan2(y,x)*3)/5 – polar: ρ(θ)=2.5+sin(3θ)/5. It’s a simple polar coordinate system, and adding a compressed sine wave (3 periods per turn) on a circle:

    θ(t) = t // angle
    ρ(t) = 2.5 + 0.2 * sin (t * 3) // radius
    // of course, you can play with the parameters :-)
    

    You can easily convert those polar coordinates into cartesion ones.

    The animation at the beginning, moving from the center into the path, would need an extra function of course. Yet, it could be done with the same mechanic – leaving out the circle part: ρ(θ)=2.5*sin(3θ)

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

Sidebar

Related Questions

I want to make a rotating drillbit animation that shows the complete process of
I want to make an application that shows a frame by frame animation when
I want to make an animation that runs as soon as someone enters my
So, I'm trying to make an animation in JavaScript (I want a navigation bar
This is a simplified example, to make sure that there are no asynchronous fading/animation
I need to make a simultanous animation on UIView. I want to change size
I want to do a simple animation clicking on this link <a id=C href=http://www.google.com>Make
I want to make the speed of an animation selectable. I've written the following
I want make a bash script which returns the position of an element from
I want to make an animation, like the deleting a note in iPhone Notes

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.