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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


  <meta name="robots" content="noindex,nofollow">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="stylesheet" type="text/css" href="">

  <div class="openbtn">
    <div class="openbtn-area"><span></span><span></span><span></span></div>
  <p class="lead">クリックしてね</p>

  <script src="" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>


                @charset "utf-8";

.openbtn {
  position: relative; /*ボタン内側の基点となるためrelativeを指定*/
  background: #ec6015;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;

.openbtn .openbtn-area {
  transition: all 1s; /*アニメーションの設定*/
  width: 50px;
  height: 50px;

.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  width: 45%;

.openbtn span:nth-of-type(1) {
  top: 15px;

.openbtn span:nth-of-type(2) {
  top: 23px;

.openbtn span:nth-of-type(3) {
  top: 31px;

/*activeクラスが付与されると .openbtn-areaが360度回転し、その中の線が回転して×に*/ .openbtn-area {
  transform: rotate(360deg);
} span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
} span:nth-of-type(2) {
  opacity: 0;
} span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;

/*========= レイアウトのためのCSS ===============*/

body {
  background: #f3f3f3;
  padding: 20px;

a {
  color: #333;
  text-decoration: none;

.lead {
  margin: 20px 0 0 0;

.btn-block {
  width: 200px;
  padding: 30px;



                $(".openbtn").click(function () {