Solved

Jquery animation to fly item into recycle bin

Posted on 2014-09-10
3
885 Views
Last Modified: 2014-09-12
Im looking for a cool jquery animation that will allow me to simulate an item moving from one location and disappearing in another.
i.e. something like an item being clicked and moved to the recycling bin.
0
Comment
Question by:Al4ddin2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40315738
Something like...
http://jsfiddle.net/buc2ok9h/

$("div").animate({top:"100px",left:"200px"}).hide(500)

Open in new window

0
 
LVL 82

Expert Comment

by:leakim971
ID: 40315797
test page : http://jsfiddle.net/fmo045a7/

$(function() {
    $("#paper").click(function() {
        var target = $("#trash").offset();
        $(this).animate({ top:target.top, left:target.left }, 2000, "easeInQuint", function() {
            $(this).fadeOut();
        });
    });
});

Open in new window

0
 
LVL 24

Accepted Solution

by:
lenamtl earned 500 total points
ID: 40317017
I like those libraries (css but can be a plus to your jQuery)
http://www.minimamente.com/example/magic_animations/
http://colindres.me/saffron/
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Tool to Build Android and iOS App 3 53
Why does my button disappear? 3 28
A form to still have contents even if some are wrong 10 46
Centered Image 2 21
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now