Ticket #337 (closed enhancement: invalid)
Fx.Slide - Modification to reverse direction of slide
| Reported by: | kenjin@… | Owned by: | |
|---|---|---|---|
| Type: | enhancement | Priority: | minor |
| Milestone: | Mootools version 1.3 | Component: | Core |
| Keywords: | Cc: |
Description
This is only meant to be helpful so if there is a design decision not to make the Fx.Slide work in the reverse direction I couldn't find a reference to it.
The change means an Fx.Slide can take an optional extra argument of { direction: 'normal' } or { direction: 'reverse' }, which will reverse the direction of the sliding animation.
I patched revision 743 with the changes and the diff can be found at
http://www.kenjinx.com/mootools_slide.diff
Hopefully the coding style is in keeping with the rest of mootools.
Demos can be found at
http://www.kenjinx.com/slide_example.html
&
http://www.kenjinx.com/slide_example_horizontal.html
There is a bug with the layout in the horizontal example, where the returning content from the slide in displays above the border; so if anyone can point out why that's broken that would be nice of them. I don't think that's a problem with the javascript itself so I'm all ears as to what people think that is.
Note that I don't have access to a windows box so the layout of my page may totally broken on both flavours of IE. Actually the chances are pretty high given the hackery with z-index.