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.

Assign a CSS Class / ID from Parent document to Object

Home Forums Puzzles Assign a CSS Class / ID from Parent document to Object

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #49522
    ma77hew
    Participant

    Hi, there is some javascript in my parent document that wraps certain links in CSS class to perform action on click. Can I assign CSS class from parent document to objects in my 3D scene?

    #49526

    you might find some insights in this article https://redstapler.co/how-to-apply-css-to-iframe/

    Chief 3D Verger | LinkedIn | Twitter

    #69087
    ma77hew
    Participant

    The example provided above features a series of <div> boxes to fake a 3D object built in CSS. It does not refer to a 3D mesh contained in a Verge3D scene.

    Are there puzzle pieces to assign CSS class to objects in puzzle editor?

    • This reply was modified 11 months, 2 weeks ago by ma77hew.
    • This reply was modified 11 months, 2 weeks ago by ma77hew.
    • This reply was modified 11 months, 2 weeks ago by ma77hew.
    #69096
    kdv
    Participant

    Can I assign CSS class from parent document to objects in my 3D scene?

    No. Objects in the scene are not HTML elements.

    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.

    #69097
    ma77hew
    Participant

    Thank you KDV you are help as always! I am asking because in my parent document i have javascript that opens <a>tags inside lightbox when clicked.

    I have used the puzzle editor to open links for objects on click.
    I am trying to find a way to get this javascript to apply to my verge3D scene objects as well.

    • This reply was modified 11 months, 2 weeks ago by ma77hew.
    #69337
    ma77hew
    Participant

    I understand it’s not possible to assign css classes to 3D objects. Maybe I can assign them to the links attached to these objects that open on click? Does that make sense

    #69340
    kdv
    Participant

    links attached to these objects

    what’s this? :scratch: You’d better illustrate your question…

    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 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.