Solved

Picasa effect with YUI

Posted on 2013-01-30
3
197 Views
Last Modified: 2013-02-03
I'm trying to create a gallery where images can be rearranged by dragging.  When you pause over two other images they separate to make room for the image you want to insert between them.  Google does this with Picasa and Windows 7 does it with the icons in the task bar.  

Has anyone seen or done something like this with YUI?

Thanks,
Steve
0
Comment
Question by:steva
  • 2
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 38839328
YUI3?
0
 

Author Comment

by:steva
ID: 38840239
YUI3, YUI2.  I don't care.  I looked through their examples but didn't see anything like this.

I can see that the image elements are probably going to have absolute positioning and that the drag operation is going to have be able to sense the current position of the image being dragged with respect to other images in the window, and change the absolute position of those other images as well as the one being dragged.

I just know someone somewhere has worked this all out and I'd like to start where they left off, if possible.

Steve
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38840265
I think you need to slide both of the images respectively to the left and to the right once the dragged image is over. For example if you set each image in a div and set each as droppable, you can receive an event and slide them to the left or to right
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 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