How do I run code on CodePen?

By default, every time you save your project runs and automatically updates the preview. You can save and run your project by clicking the “Save All + Run” button in the header . You can also use the keyboard shortcut to save your current file (Command + S for Mac, CTRL + S for PC).

Read more

How do I add a script to CodePen?

You can add JavaScript libraries to your Pen through the JavaScript settings menu . There are two ways to access the JavaScript settings menu. For quickest access, click the gear icon in the upper left of the JS editor panel. That opens the Pen Settings menu with the JavaScript tab automatically selected.

Read more

How do you make a CodePen project?

To make a Project available as a template, first click “Settings” to open the Project Settings menu. Then, slide the toggle switch under “Project Description” to “Template”. Finally, save your settings by clicking the green “Save and Close” button. After you do that, your Project becomes available as a template.

Read more