gm all.
am looking at this. http://api.jqueryui.com/slide-effect/
It works just fine and it should take direction and distance. but am not sure where to enter that info. I tried.
basically i have two divs absolutely positioned, when the one on top slides over it reveal the one below. I click on the image below & it brings the top one back.
So far so good.
but I want the image on top to leave just of display for ui purposes so the user knows to click on it to bring it back. i temp solved w/the user being able to click on the bottom image to bring it back.
but so far have not been able to restrict the distance of the slide.
thx
D
2 issues.
1.even with margin the two div overlay each other (not this bad in my page. only about 20px of an overlay…still, trying to fix it) my impression is that the height of the underlying div is affecting this.
2. when the user clicks on the black vertical toggle on the right hand side the top div goes off the screen entirely
gm Ryan. not really & no need to flag. am going more for an “easter egg” effect. i want the user to find that they can see additional image or info that is hiding behind a top div.
thx
D
I can’t really work out the exact effect you are going for from that demo but it seems to me you won’t accomplish it with jqueryui “slide” function because although you can control how much the element slides (an integer less than its own width and height) the element will ultimately disappear (i.e. it will disappear when it has animated by xxpx within itself). It will not remain visible at the final distance.
You would be better off just using jquerys animation to move the element or for a smaller more compact and smoother animation use velocity.js.
If only modern browsers support is required then you could probably do that with css3 animation and a simple class change to trigger the animation.
However, I may b wide of the mark because I couldn’t really work out what you were trying to do from the demo and how you envisaged it working:)
no, that is a good point. thx. it was my impression that one should be able to limit the slide. but one of my co-worker also mentioned that eventually it goes for a full disappearance. so will try something else.
however…can you advise as to how to fix the overlap? I tried various solutions. i got one w/the percentage but when i re size the browser the divs overlap again.
thx
d
so for example when you click on that thin right floated div w/the triangles the top div slides over and display artwork underneath.
right now i got in there place holders.
I got it so it slides back & forth just fine. & got some code to flip the triangles.
but still have some issues getting right the margins between the artWrap divs. And some issues w/the responsiveness but i’ll deal w/that as i flesh out the design.