Solved

Jquery animation to fly item into recycle bin

Posted on 2014-09-10
3
857 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…

762 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

13 Experts available now in Live!

Get 1:1 Help Now