Skip to main content
Known Participant
Aug 19, 2022 9:43 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Known Participant
    Aug 19, 2022 9:49 AM UTC

    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 ?

     

    Translate
    Known Participant
    Aug 19, 2022 9:51 AM UTC

    The code blocks the components I meant.

    Translate
    Known Participant
    Aug 26, 2022 6:10 PM UTC

    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?

    Translate