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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:36:14+00:00 2026-06-13T06:36:14+00:00

Although we can achieve fantastic animations through various Javascript libraries such as jQuery. I

  • 0

Although we can achieve fantastic animations through various Javascript libraries such as jQuery. I am wondering what’s the technique behind the animation?

I can think of using CSS to format the page element.

But how can we place an element on arbitrary position of the page? I mean, not by lines. Is it true that we can think of the client area within the browser window as the Paint canvas?

I am totally new to frontend Web development, I hope I made myself clear. And thank you for answering this junior question.

  • 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-13T06:36:15+00:00Added an answer on June 13, 2026 at 6:36 am

    The jQuery way – and the only cross-browser way – to animate is to set some CSS properties, wait a little, update those properties, wait a little, update those properties…

    e.style.position = "absolute";
    time_start = Date.now();
    time_end = time_start + 10000;
    
    (function tick(){
      now = Date.now() - time_start;
      if(now > time_end) now = time_end;
      e.style.top = now * speed + top_start;
      if(now < time_end) setTimeout(tick, 13);
    }();
    

    The CSS properties you are interested in are:

    • position: absolute lets you position the element to an arbitrary location.
    • display: block or display: inline-block lets an element to have a width and height
    • top, left, bottom, right define the element position if its position is absolute or relative. left takes precedence over right and top takes precedence over bottom.
    • width and height define the element’s size.
    • opacity can be animated to fade an element in or out.

    • padding, border-width, margin and their respective components can all be animated.

    You can also animate colors: border-color, color, background.

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

Sidebar

Related Questions

I am using the jQuery-File-Upload widget (although I believe this question can generalize to
Although I can achieve creating a temp file with either mktemp and touch ,
We are using DevExpress XtraReports 2009v3.3 and although I can achieve what I want
Im sure this is a simple technique although I can't find an answer so
I've seen from some sources that although you can make an exe or mac
I have a question, although I can't really go into specifics. Will the following
I have the following razor template html, although I can't figure out how to
Although obviously not all scenarios can be covered by a single design, is it
Although a static class has only one instance and can't be instantiated, a class
The loop below modifies bloc . Can sapply() achieve the same result? Or in

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.