349 posts · Joined Nov 2014 · 📍 Long Beach, CA, United States

Previously, I'd just been using the embed code that Matterport provides, but because it had large, hard coded width and height parameters, the 3D Showcases were way too big for mobile devices. (Though they resized just fine when the user clicked on one.)
Anyhow, I found this cool website that generates better embed codes: http://embedresponsively.com/
I ran the Matterport embed code through it and got this:
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe width='853' height='480' src='https://my.matterport.com/webgl_player/#model=ue2ubWi9tSw' frameborder='0' allowfullscreen></iframe></div>
So now I embed this on my website instead of what Matterport shares. Here's my portfolio page redone with the new embed codes:
http://www.3dinteriorscanning.com/portfolio.html
Compare this (on a mobile browser) to the way it used to be:
http://www.3dinteriorscanning.com/portfolio_old.html
Craig
