We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

hiding object doesn’t work with html button revealed by hovering

Home Forums Puzzles hiding object doesn’t work with html button revealed by hovering

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #69623
    alissa
    Participant

    Hey, I habe a weird problem with hiding my objects when clicked on a html button. The button “delete-ground 1” is revealed by hovering over a dropdown menu icon. It should remove all cloned objects in one list (which works) and also hide my main object, but it doesn’t hide it.
    When I let another button (that is not revealed by hover) hide my object it works fine. Does anyone have a solution for this or knows if the hover interaction I did in webflow is interfering with hiding my object?

    Attachments:
    You must be logged in to view attached files.
    #69627
    kdv
    Participant

    clonedMesh + 1? :scratch: What do you expect to get when summing a string value (the last clone’s name) and a numeric value? :unsure:

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69630
    alissa
    Participant

    But my main problem is that it doesn’t hide the initial object. It just removes all clones. When I tried the same thing with another button that has no hover effect assigned in Webflow it removed all clones and deleted the main object. Do you know why?

    Don’t I need the numeric value? It works with removing the clones one by one.
    And why do I set an empty list?

    Thank you for your help!

    #69633
    kdv
    Participant

    And why do I set an empty list?

    To nullify the variable after deleting clones.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69635
    alissa
    Participant

    Okay thank you. But does anyone know why my button for hiding my object doesn’t work? Can’t figure it out.

    #69636
    kdv
    Participant

    Nobody knows untill you show your working app.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69637
    alissa
    Participant

    I’m sorry can you tell me how I can share it here? b´Because if I upload the html file my interface (therefore also the button) will not be there.

    #69638
    alissa
    Participant

    Actually I wouldn’t need the button, if I can delete any of my objects with a shortcut. Right now I have something wrong with my logic and maybe you can take a look. At the moment they get deleted when I click on them after pressing the shortcut but I want to delete an object when pressing delete on the keyboard.

    Attachments:
    You must be logged in to view attached files.
    #69640
    kdv
    Participant

    how I can share it here?

    Export your page in Webflow and put the exported files into the app’s folder. After that you can work with your app locally and can upload the working app to the Verge network.

    This will remove the last picked object when the Delete key is pressed

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69644
    alissa
    Participant

    Index html: https://v3d.net/rd0
    html file of my project name ( “tryyy”): https://v3d.net/r53

    Sadly the puzzle combination you send doesn’t work for deleting my objects. Could you take a look, if you can see what the problem is?

    #69645
    kdv
    Participant

    You’d better zip your app folder and upload it to the Google Drive. It’s to big to load and test it via the Internet :unsure:

    Sadly the puzzle combination you send doesn’t work

    After these words you should show YOUR puzzles. Nobody knows your logic :scratch:

    And disable OIT in your project. Or do not use it with HiDPI Rendering. Always test your app with the browser console open to see errors and warnings. Your are a blind coder without debugging.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69646
    alissa
    Participant

    I uploaded it to Drive : https://drive.google.com/file/d/1JN-tE0yPmLi-xc882qgPqKgqrwtT-NL7/view?usp=share_link
    I am still learning to use Verge3d, so I appreciate your help on this.

    #69655
    kdv
    Participant

    The button “delete-ground 1” is revealed by hovering over a dropdown menu icon. It should remove all cloned objects in one list (which works) and also hide my main object, but it doesn’t hide it.

    The reason is very simple: you draw +, - and x over the main button. Clicking on the main button shows the initial object. When you click on x (it will hide the object) you also click on the main button (it will show the object). As a workaround you can use a zero delay.

    And there is no need to use so many variables as clonedMesh2, clonedMesh3 etc. You can re-use clonedMesh as many times as needed. It’s just an auxiliary variable.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69663
    kdv
    Participant

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #69667
    kdv
    Participant

    Too many changes to be made. Take this modified logic (the first four ground buttons) and do the same way for other buttons.

    Attachments:
    You must be logged in to view attached files.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.