Click Model and popup a bigger box #5013
Replies: 1 comment
-
i solved this the old-fashioned way by using classes that go from offshore to onshore. offshore has display-none and the onshore class.
`
`
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the model on the screen, but I want to be able to click that model, and then popup in the center-ish of the screen a bigger version that has all the fixins 'camera-controls' too. I took off 'camera-controls' in the following code and didn't know how to link. In my example below I put a-href '#' as just an example. Didn't know to add javascript, or maybe it needs a dreaded Iframe.
lbl_ab.Text = "<a href='#'><model-viewer src='" + snapshot.Replace("'", "\\'") + "' auto-rotate style='width: 100px; height: 100px' id='snapshot_" + k + "'></model-viewer></a>"; cell.Controls.Add(lbl_ab);
Please help.
The bigger box would need to look like this, or something like it:
<model-viewer src='" + snapshot.Replace("'", "\\'") + "' camera-controls auto-rotate style='width: 300px; height: 300px' id='snapshot_" + k + "'></model-viewer>
Beta Was this translation helpful? Give feedback.
All reactions