Skip to main content
Known Participant
August 19, 2022
Question

Problem with z-index (video above component button and textinput)

  • August 19, 2022
  • 1 reply
  • 320 views

Hi,

I have a small problem with my components "button" and "textinput".

I added a background video with the code :

canvas.style.zIndex = "1"

so that the other elements are above. I also made the scene background transparent.

All the elements are well above except the 2 components "button" and "textinput" which remains below the video.

 

Do you have any idea how to fix the problem please ? Thank you and good day.

    This topic has been closed for replies.

    1 reply

    Known Participant
    August 19, 2022

    Actually i just saw that the code 

    canvas.style.zIndex = "1"

     the operation of the 2 components. They have below and cannot work with the code. How to do ?

     

    Known Participant
    August 19, 2022

    The code blocks the components I meant.

    Known Participant
    August 26, 2022

    I tried again, but I can't put the video on the bottom and the components on the top

    And the code locks

    canvas.style.zIndex = "1"

    both components.

    Has anyone encountered the problem before?