Solved

Picasa effect with YUI

Posted on 2013-01-30
3
193 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now