Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


Save Automatically?

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.


                <div id="app"></div>


                body {
	height: 100vh;
	display: grid;
	place-items: center;

.card {
	--x: -500px;
	--y: -500px;
	height: 60%;
	width: 70vw;
	padding: 1rem;
	box-sizing: border-box;
	display: flex;
	background: radial-gradient(circle at var(--x) var(--y), #66a5ad 0%, #003b46 25%);
	border-radius: 15px;
	color: #fff;



                const Hello = () => {
	const foo = e => {
		const x = e.pageX - e.currentTarget.offsetLeft;
		const y = e.pageY - e.currentTarget.offsetTop;"--x", `${x}px`);"--y", `${y}px`);
	const doo = (e) => {"--x", `-500px`);"--y", `-500px`);
	return (
		<div className="card" onMouseMove={foo} onMouseLeave={doo}>
				Lorem ipsum isd asdj aker kjdod klkda mnci sdejknw dflijewmkn sdfij sdfkj
				lkje bnasda meoi alknv asolijf lknsas loijaewr lkndf asdio welnr joapo knerw
				lkner knasdf oijerto knjdfao dfuiookj kojsdfi nwejro noaidsf njiewr
				nsdjfoadin ihjerwe

ReactDOM.render(<Hello />, document.getElementById("app"));