You can put divs in a list, that’s definitely not hard to do in Freeway, but it’s a really useless thing to do when all you are trying to do is divine a structure from a collection of elements. If you were to put the same collection of DIVs into a parent DIV (nested boxes), they would have an implicit structure just from their hierarchical position in the code. The example I posted does precisely this:
<div class="slides">
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
</div>
(Typed off the top of my head, so probably not exactly the same, and using simplified names)
When the page loads, I loop through each of the .slide elements and assign it its “net” (next) attribute, so it knows where to animate to.
$$('.slide').each(function(elm){
elm['nxt'] = (elm.next('.slide')) ? elm.next('.slide') : $$('.slide').first();
});
(That’s also slightly different than the example, and not ideal, because it won’t allow multiple instances of this effect. Need to think some more about this.)
But once that relationship is set up, the rest is really easy. You can animate to the next element in whatever effect you prefer, because you can set the before and after state for the two elements (current and next). You could even use CSS transitions instead of JavaScript, for hardware-accellerated goodness, and only fill in with JavaScript on IE and older browsers.
To get the effect you show in your example page, you would just have to add a “prev” attribute to each element, using the same technique in reverse, and then the rest is the same.
So my point is that the HTML structure (a UL or just a bunch of DIVs inside another DIV) doesn’t make the effect work or not – that’s just how the designer of the particular jQuery effect you’re using decided to access the list of elements. And it makes a sort of semantic sense – you have a list of elements, so putting them in a UL gives them an implicit structure that the box of boxes lacks.
Walter
On Jun 27, 2013, at 9:56 AM, Thomas Kimmich wrote:
In Freeway this is simply impossible to rebuild (as far as I know but that’s not much). And there are a couple of more popular examples that are even list divs.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options