Using pannellum.org and ArcGIS API for JavaScript together (syncing camera)
This isn't intended as a fully polished app. Just a bit of fun in an afternoon!
If you try to get the code to run, make sure you download a sky texture to place alongside it. It's worth searching for a "Equirectangular" skybox.
Sample here - https://experience.arcgis.com/experience/5f2a936a0f0e4a20840f0fb65dadbd73/
Thanks!