Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Picasa effect with YUI

Posted on 2013-01-30
3
Medium Priority
?
203 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 2000 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

670 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