You talk about using Codepen in your question. Currently, Codepen does provide a way to serve a static version of anything you post, with a static URL. To get the URL, open the Codepen pen, and look for the button that says "Editor" (at the time of posting this, it has an aqua bar near it). Click on the Editor button, and look for "Full Page". Just to the right of "Full Page", there should be a small link you can click that reads "Get URL".
I'm unsure if this answers your question, as the question is a tad unclear, but I believe I've done what I can to parse what you're asking.