Cycle Plugin - 2 different Slideshows in one Container

Cycle Plugin - 2 different Slideshows in one Container

Hello forum,

I'm stuck on, I guess a simple thing - to explain my problem on an example, see exactly what I want to do:


I want to solve two different slider-effects, hopefully in one container - a background-image fade and a front image scrollLeft, both accessable by the same pager-navigation. I'm quite a newbie so this is hard for me.

Status quo: I slide the whole full-width-container (background-image) to achieve the background-fade.
The front-image scrollLeft is another slider-container with a negative margin-top to overlay both.

  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3. $('#slider').cycle({
  4. fx: 'fade',
  5. next:   '.next', 
  6. prev:   '.prev',
  7. pager:  '#slidernav'
  8. });
  9. $('#slider2').cycle({
  10. fx: 'scrollLeft',
  11. next:   '.next', 
  12. prev:   '.prev',
  13. pager:  '#slidernav'

  14. });
  15. });
  16. </script>

  17. <div id="slider">
  18.       <div id="landscape"></div>
  19.       <div id="landscape2"</div>
  20. </div>
  21. <div id="slider2" style="margin-top:-440px;">
  22.       <img src="front1.jpg" />
  23.       <img src="front2.jpg />
  24. </div>
This is quite unsatisfying and I hope for a better solution, I'm even not sure if this could be done with jquery and is not a css-only thing.
With my solution, the pager-navigation appears double.
Is it possible to put each image into it's assigned landscape-div (like the example-page above) but make the fade-slider don't affect the images AND make a new slider detecting the images in different div's collecting them to a slide? And make the pager using both sliders?

I hope my point of view isn't too strange.
Thanks a lot.