A
A
Azat2017-04-27 21:08:30
JavaScript
Azat, 2017-04-27 21:08:30

Is it possible to add a form, fields, buttons to the page with three js?

I add input type='text' to body via appendChild, but the field is not available. Is it even possible to add normally working form, input, button on a page with three js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2017-04-27
@Ni55aN

three.js doesn't work with the DOM (elements on the page) at all, it only renders on the Canvas.
If you need buttons/fields, etc., you can add them on top of the canvas with position:absolute

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question