Skip to main content
sovie4711
Inspiring
June 12, 2017
Answered

dom_overlay_container - for what?

  • June 12, 2017
  • 2 replies
  • 2249 views

I try ti figure out the purpose of the

dom_overlay_container and animation_container
Can I
delete them in the html structure?
Or are they linked with any necessary JS Code?

    This topic has been closed for replies.
    Correct answer sovie4711

    ?

    I found out that components are children of this layer - above the canvas.
    The "dom_overlay_container" ID is implemented as target in the code snippets for components behaviour.
    So in most cases, the dom_overlay_container is empty and without function.

    2 replies

    Inspiring
    November 14, 2017

    You can use it for DOM animation, e.g.

    Just paste this code in actions panel:

    var div = document.getElementById('dom_overlay_container');

    div.innerHTML += 'My Animated Text';

    ... and it is responsive just like the canvas.

    Legend
    June 12, 2017

    They wouldn't be there if they didn't need to be there. Leave them alone, stop trying to break things.

    sovie4711
    sovie4711AuthorCorrect answer
    Inspiring
    June 12, 2017

    ?

    I found out that components are children of this layer - above the canvas.
    The "dom_overlay_container" ID is implemented as target in the code snippets for components behaviour.
    So in most cases, the dom_overlay_container is empty and without function.

    Legend
    June 12, 2017

    Yes, and it imposes an utterly insignificant storage overhead, so don't worry about it.