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

The Archive Base Latest Questions

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

I’m learning some basics about JQuery. When I learn about something, I always try

  • 0

I’m learning some basics about JQuery. When I learn about something, I always try to imagine how works behind the scenes, but I don’t imagine how some effects really are done.

For example some simple .hide(slow) is an example. As I understand, JQuery modifies HTML code of HTML components. A “.hide” without animation seems pretty “obvious”, I guess “visibility:none” would do the trick.

But animation implies something more interesting I guess. The first idea is a loop that changes attributes and expect rendering is fast enough to make a smooth animation. But it sounds pretty “CPU abusive”.

How it’s really done?

Edit: I don’t consider even an average JS programmer, so reading the original source code is quite difficut. I was looking for some “big picture” explanation. Maybe the word really wasn’t appropiated.

  • 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-10T05:36:15+00:00Added an answer on June 10, 2026 at 5:36 am

    jQuery’s source code is a bit too high-level to understand easily, so it might be easier to just write a simple animation from scratch:

    var element = document.getElementById('element');
    var maximum = 200;
    var interval = 5;
    var left = 10;
    
    function animate() {
        if (left < maximum) {
            left += 1 - Math.pow(left / maximum, 5);
            element.style.left = left + 'px';
    
            setTimeout(animate, interval);
        }
    }
    
    animate();​
    

    And a working demo: http://jsfiddle.net/QB8C7/3/.

    jQuery does something similar, but in a much more structured manner.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I don't have much knowledge about the IPv6 protocol, so sorry if the question

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.