Relative Slider position using CSS techniques

Hi frens,

it is possible to integrate a p5js-slider in react-dom structure:

<Row>
              <Col className="slider-label">Movement</Col>
              <Col className="slider01">*Place for p5js-slider*</Col>
            </Row>

Sketch with slider (instance mode)

        jslider = p.createSlider(0, 1, 0);
        jslider.class('slider01');

I want to place the slider relative to other DOM-Elements and not in relation to the canvas…

Thanks in advance

Res

I’ve got the solution…

 jslider.parent('slider01');

1 Like