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.


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 class="box"></div>


  width: 100px;
  height: 100px;
  background: #4f9e9b;


                /******* TO *******/".box",{
  x:100 //右に100px移動     

//                 x:100, //右に100px移動     
//                 opacity: 0,
//                 scale: 2
//                });

/******* FROM *******/

// gsap.from(".box",{
//   x:100 //右100pxから移動
//                  });

/******* FROMTO *******/

// gsap.fromTo(".box",{      
//   x:100 //右から100px      
// }, {      
//   x:0, //左にに100px移動して元の位置に戻る 
//   scale:0 //0%まで縮小     
// });

/******* SET *******/

// gsap.set(".box",{      
//   x:100 //右100pxの位置に設定を変える     
// });

/******* SET WITH TIMELINE *******/

// gsap.set(".box",{      
//   x:100 //右100pxの位置に設定を変える     
// }); 

// var tl = gsap.timeline(); 

//   x:-100 //右100pxの位置から元の位置の-100pxへ移動     
// })   
//   .to(".box",{      
//   y:100 //左へ移動した後に、下に100px移動     
// })