Solved

Jquery animation to fly item into recycle bin

Posted on 2014-09-10
3
912 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to dynamically set the form action using jQuery.

770 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