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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:47:50+00:00 2026-05-27T15:47:50+00:00

all i have a problem in trying to using jquery and css3 keyframe to

  • 0

all

i have a problem in trying to using jquery and css3 keyframe to move or circle an element such as div or image around a point or mouse continues, not delay time, just keep circle around.

Any solution ? please show me. thanks in advance !

  • 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-27T15:47:51+00:00Added an answer on May 27, 2026 at 3:47 pm

    From your clarifying comments:

    given a position, how to make a image or element circle it

    CSS3 Animation

    To make an animation where you rotate an element around a point smoothly and continue forever, you can use these CSS3 keyframe/animation and 2D transformation properties:

    • animation to specify timing and which keyframes to use.
    • animation-timing-function to specify that you want a smooth animation (linear).
    • @keyframes to specify exactly how to animate the element.
    • transform-origin to rotate around a point other than the center of the div (some offset).
    • transform to move the element out from the center of rotation (radius of orbit).
    • rotate(<angle>); to specify that you want to rotate in your keyframe(s).

    You will probably need to duplicate these and prefix each with -webkit-, -moz- and -ms- for a while until the CSS3 animation features are widely supported.

    Specifying position in CSS/jQuery

    You can use plain-old CSS to rotate an HTML element around an arbitrary point:

    div.someClass {
        position:absolute;
        top:250px;
        left:350px;
    }
    

    If you want to continually center your animation on the mouse cursor, you’ll need to use jQuery to handle the mousemove event on the document, and set the left and top properties of the element’s CSS.

    Something like:

    $(document).mousemove(function(event) {
        var animated = $("#animated");
        var offsetX = 50; // Pixels to the right of the cursor
        animated.css("left", event.pageX + offsetX);
        animated.css("top", event.pageY - animated.height() / 2);
    });
    

    Docs

    • The current CSS3 animation specs
    • The current CSS3 2D transformation specs.
    • A basic w3schools tutorial on how to use CSS3 animations.
    • The jQuery .mousemove handler method
    • The jQuery .css setter method

    Code Sample

    I had built a code sample to research the functions and references you’d need to build this on your own. Since the other answer already gave you their code sample, I’ll go ahead and post mine.

    • http://jsfiddle.net/vLwDc/1/

    I highly recommend you build this out yourself so you can learn how these things work 🙂

    Browser Support

    See this page with a CSS3 Animation support matrix, and this page with a CSS3 2D Transform support matrix.

    The gist is:

    • It will only work in IE 10.0 and above. It won’t work in IE9
    • It will work in pretty much any version of Firefox or Chrome
    • It should work in Safari 4.0 and later
    • It probably won’t work in Opera (I’d need -o- Tranform tags to make it work, and the Animation support just isn’t there yet)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to develop web form using jquery. all i need is to have several
Hey all, i have a problem with trying to get 2 forms to close
Hey all, i have been trying for a few minutes on this problem and
I'm having a problem trying to return a specific record using jQuery and JSON.
I have making an AJAX wizard using JQuery and I'm trying to get the
Bit of a newb but just having a small problem using jquery cycle all
I'm having a problem with accessing my buttons separately using jquery. Suppose I have
i have problem with autorotate on iphone i set up in all classes -
Here is the problem: We have all of our development under subversion, but our
I have problem with return statment >.< I want to store all magazine names

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.