Dear
(excused for my english, I'm dutch)
I'm creating an overlay with multiple effects and clicks. To setup the overlay and the general effects (slide, fade, duration,...) there's no problem. As for some actions there's need an automated close after a few seconds.
Here is my jQeury code for the total animation.
- jQuery.noConflict();
jQuery(document).ready(function() {
// START DOCUMENT READY
// Start welkombox overlay
jQuery(function() {
jQuery("#welkombox div[rel]").overlay();
});
// End welkombox overlay
// Start slide overlay content
jQuery('#verhuiskeuze1-wachten').click(function() {
jQuery('#verhuis-algemeen, #verhuis-wachten').animate(
{ left: "+=100%" }, // what we are animating
{
duration: 1000,
easing: 'easeOutQuad',
}
);
});
// End slide overlay content
// END DOCUMENT READY
});
Here is a simple version of the body.
- <!-- Visable content on page -->
<div id="content-inner">
<div id="welkombox">
<div id="box1" rel="#related1">Some content...</div>
<div id="box2" rel="#related2">Some content...</div>
<div id="box3" rel="#related3">Some content...</div>
</div>
</div>
<!-- Overlay content, witch s visible onclick of one of the boxes above -->
<div id="related1" class="overlay">
<div id="Inside-part1">Some text (button to slide, defind in the Jquery script)</div>
<div id="Inside-part2">Some text</div>
</div>
<div id="related2" class="overlay">Some content...</div>
<div id="related3" class="overlay">Some content...</div>
Now for what I want exactly to do:
- Create overlay if clicked on div in the body content. (DONE)
- Open the refering overlay of witch div container was clicked. (DONE)
- In my project there are 2 div's (as clickable items) with actions. For one of them the content with in the overlay moves to the right side and showes some other content. (DONE)
- If that last is done (click and move tot right) the overlay is suposed to close automaticly after a few seconds.
The last thing is something what seems to be impossible.
Is there someone how can help me?
Thanks