The accepted answer answers my question, but not quite what I went to to solve the problem, to make scrolling with gui with me when I go up and down the page. Instead of setting an identifier for gui domElement, I added an element to an existing element, which I can control better.
CSS
.moveGUI{ position: absolute; top: 13.1em; right: -1em; }
JS:
// Create GUI gui = new dat.GUI( { autoPlace: false } ); { // create fill and open folders } var customContainer = $('.moveGUI').append($(gui.domElement));
HTML:
<div class = 'moveGUI'> </div>
source share