Seeking a JavaScript/jQuery function for a full page slider functionality. The HTML structure I'm working with is as follows:
My objectives are twofold:
- Both
slide1
andslide2
should occupy the full width of the page. - Additionally, I am looking for a function that smoothly transitions from
slide1
toslide2
when called, and vice versa upon subsequent calls.
While exploring options like fullpage.js
, it was found to have unnecessary side effects such as restrictions on vertical scrolling, content centering, and lack of responsive font resizing, which does not align with the requirements.
The goal is to achieve this functionality in a concise manner without overcomplicating the code. Any guidance on creating two full-width divs acting as independent "body-elements" controlled by a simple JavaScript/jQuery function would be greatly appreciated.