Currently, I am working on a single-page website project using Bootstrap. This site is split into 4 sections, each encapsulated in a 'section' with its own distinctive background color/image and content. On the first section that covers the entire screen and features a Navbar at the top with various headers, I would like to incorporate a script as the background, rather than just a basic image or solid color like the other sections.
To achieve this effect, I am seeking guidance on how to integrate a JavaScript code as the background while ensuring it does not interfere with any other elements within the same section and allows text to be displayed over this background element.
The specific script that I intend to use as the background (sourced from codePen.io) can be found here: http://jsfiddle.net/oleg_korol/a1bxr5ua/1/
Below is the code snippet:
... (insert JavaScript code snippet here)
Thank you for your assistance!
- Original source of the code snippet: http://codepen.io/towc/pen/mJzOWJ by Matei Copot