Solved

Picasa effect with YUI

Posted on 2013-01-30
3
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…
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…
Suggested Courses

624 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