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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:05:42+00:00 2026-05-30T09:05:42+00:00

In a complex jquery problem, If possible,I want a an image to fly into

  • 0

In a complex jquery problem, If possible,I want a an image to fly into another div and adding 1 to current value , just as it does in shopping carts

The scenario is a user can like another user, by clicking thumbs up
next to his image now I want the image of user keeps getting smaller
in size as it fly’s to the counter, once reached to the div the image
clicked should be removed.

I am not able to do fly and shrink part even after reading tutorial and reckon its something I need help with. I envision its a time consuming thing thus any guidance would be hugely be appreciated. Thank you Sir
Jsfiddle

http://jsfiddle.net/rigids/TYMfB/

Image below explains things more
Struck with jquery effects

  • 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-30T09:05:44+00:00Added an answer on May 30, 2026 at 9:05 am

    jsBin demo

    var $counter = $('#counter');
    
    $('.row').click(function(){
    
      var $that  = $(this);
      var $clone = $that.clone();
      var speed  = 1000;
    
      // "hide" clicked and create a clone that will fly
      $that.slideUp(speed).after($clone);
    
      $clone.css({
        // Setup initial position
        position: 'absolute',
        top:      $that.offset().top,
        left:     $that.offset().left
      }).animate({
        // Fly!
        left:     $counter.offset().left,
        top:      $counter.offset().top,
        width:    0,
        height:   0
      },speed, function() {
        // On animation end:
        // Increment counter
        $counter.text( +$counter.text() + 1 );
        // Remove both elements
        $that.add( $clone ).remove(); 
      }); 
    
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love jQuery but am running into a problem with larger site and multiple
I have a problem with jquery and a dynamic table. I want a click
I've run into a rather strange problem. I have a div that is rotatable
Is there is any Jquery plugin for create complex DOM struture ? i want
I'm working on my first very complex JQuery based application. A single web page
I have a fairly complex html form enhanced via jquery. It has multiple tabs,
So I built some complex ajaxy jquery module on my homepage, with the help
So my problem is rather simple and complex at the same time. I am
I'm using jQuery UI, and have built a toolbar (a div element), with button
I have this page that displays pictures in a div. I have jquery cycle

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.