Expand CodePen embed to full screen

I’m looking to use CodePen embeds but would like to include a button in the embed to allow it to expand to full screen - the default embed is a bit too small. I can build a CodePen to allow full screen expansion but it doesn’t work when included as an embed. Is there any solution for this?

I’m using latest version of Ghost and Casper.

My CodePen relies on calling requestFullscreen (and the webkit versions etc) which is called when a button is pressed.

Thanks.

Have you set allowFullScreen="true" on the iframe?

Hi, Thanks - I have - it’s set in the iframe embed code generated by default by CodePen - I’ve tried including this as HTML as well as using the Ghost embed with the CodePen URL - and neither of these seem to work.