like the concept of swapping. I have a never-finished-hacknslash- version somewhere (even used live I think) that does the same. The code is not optimized though.. Why is the newly-developed one that available as a fiddle? ;) the code is crunched on the semi-dev-in-progress site so that sucks.
Why are you using setProperty and on the same line get('id')? I'd just keep it consistent and use set. This is anal, but I'd also incorporate mootools programming conventions like the accolades on the same line as the if-statement and do it like: if (...){ There's a doc somewhere about this.. but really, it's just details, but I'm anal about that stuff and I like everything to be the same hehehe Also, add keyboard events. And mouse scroll events.. you call it a content slider anyway ;)) You could also check out Ryan Florence SlideShow, http://ryanflorence.com/slideshow/ Great API, last time I worked with it the fx part was a bit overly complex imho, but I didn't propose another idea so who am I to "complain".. I always wonder myself: do I need to make another tool, can't I just use one already there that is pretty advanced. Then again, yours it with a different concept; swapping the content divs Ok, stopping now.. good work On Apr 4, 6:19 pm, Fli7e <ultrakr...@googlemail.com> wrote: > Good Idea @Arian - already did it on my dev. page (http:// > gpl.artness.de/) and i like the idea :-) 'll see what i can come up > with next. > > Thanx for the feedback > > On 4 Apr., 14:46, Arian Stolwijk <ar...@aryweb.nl> wrote: > > > > > I would make your API easier, with methods like: next, previous, slide(n). > > > On Mon, Apr 4, 2011 at 2:43 PM, Robert <forpoc...@gmail.com> wrote: > > > very nice, better usability then ones maddingly scrolling there and > > > back ;) > > > > On Apr 3, 1:58 pm, Fli7e <ultrakr...@googlemail.com> wrote: > > > > A Real-World Example can be found, at the time beeing, on my dev-test > > > > Webseite under > > > > >http://gpl.artness.de/ > > > > > might disappear soon but for now it can be viewed. > > > > > Timo > > > > > On 2 Apr., 22:10, Fli7e <ultrakr...@googlemail.com> wrote: > > > > > > Hi there, > > > > > > today i sat down and did some content slider class to learn / improve > > > > > and testdrive my mootools skills. > > > > > > The Slider itself uses some mechanics to never "jump" back to the > > > > > beginning but appending the elements left or right to the actual > > > > > displayed element so there is an endless loop. > > > > > > Eg. pressing "next" on the last element won't rewind back to 1st > > > > > element but move the 1st element as next element after the previous > > > > > last one. > > > > > > I am doing this by swapping the content of two divs depending on which > > > > > action has been called and repositioning those divs after the tween > > > > > has been done. > > > > > > I setup a fiddle and would like your Opinion and your improvement > > > > > ideas. > > > > > >http://jsfiddle.net/rmh2B/1/ > > > > > > I personaly like what i cam up with but i think there is room for > > > > > improvements by you pro's ... > > > > > > Thanx in advance, > > > > > > Timo