The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Js Background slider behind content

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #43463


    I am just working with a new idea that I have got but don’t know how to make the background slider go behind content. I already have a body with fixed image. just would like the script to go on top of current body but behind content

    Is there some way i can add styles with z-index in the Java Script I am not to sure how to add it? or where it goes.


    I’m not sure what I’m looking at with that codepen…

    With jQuery it’s easy to add z-index though: `$(‘img’).css(‘z-index’, -1);`


    Sliding Images behind content is a poor UX/UI idea….IMO

    Quite possibly you will render your content unreadable.


    I know this is going to sound wacky (and I have no idea if it will work) BUT,,,

    …could you add the existing body background image to the [html] element and the apply the rotating/sliding bg image to the body?

    Can you do that?

    Obviously, you would need JS/JQ to swap out the body background but it shouldn’t be impossible…should it?


    I have worked it out my testing store

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.