Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.






                import zim from "";

// see
// and
// and

const frame = new Frame(FIT, 1024, 768, darker, dark);
frame.on("ready", () => {
    const stage = frame.stage;
	const stageW = frame.width;
	const stageH = frame.height;
    // put your code here
	// made a quick path here and copied the point data
	const points = [[-41.1,165.4,0,0,-28.2,105.9,28.2,-105.9],[147.7,32.8,0,0,-57,18.7,120.9,-39.7,"straight"],[145,-141.5,0,0,105.2,26.4,-54.8,-13.8,"straight"],[21.3,-102.4,0,0,18,-31.7,-34.8,61.3],[114.7,-36.3,0,0,-72.1,13.1,72.1,-13.1],[426.1,-60.3,0,0,-94.8,-34.1,94.8,34.1]];
	const path = new Squiggle({
		interactive:false, // remove or set to true to allow user to change with path
		.transformPoints("scale", 1.8)
	// emojis are different in different browsers 
	// on the PC we want to rotate the emoji 45 degrees to be straight on the path 
	// animate the container but rotate the object in the container
	let label;
	const plane = new Container()
			startPaused:false, // remove or set to true to not animate but only drag		
			drag:true, // optional
				label = new Label("drag plane", 30, null, yellow).pos(100, 0, RIGHT, CENTER);
	new Emoji("✈️", 100)
	// remove instructions if press on plane
	plane.on("mousedown", e=>{
		if (label) {
			e.remove(); // remove event
    stage.update(); // needed to view changes
	// docs for items used