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.


  <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="wrapper">
    <ul class="tab">
      <li><a href="#beauty">清楚美人</a></li>
      <li><a href="#cute">清楚かわいい</a></li>
      <li><a href="#gal">ギャル美人</a></li>
      <li><a href="#girl">ギャルかわいい</a></li>
    <div class="resp-tabs-container">
      <div id="beauty" class="area">
      <div id="cute" class="area">
      <div id="gal" class="area">
      <div id="girl" class="area">

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


                @charset "UTF-8";

/* --------------------------------------------------------------------------------
-------------------------------------------------------------------------------- */
.tab {
  display: flex;
  flex-wrap: wrap;
.tab li a {
  display: block;
  background: #ddd;
  margin: 0 2px;
  padding: 10px 20px;
  border-radius: 10px 10px 0px 0px;
.tab a {
  background: #fec464;

.area {
  display: none; /*はじめは非表示*/
  opacity: 0; /*透過0*/
  background: #fec464;
  padding: 50px 20px;
  border-radius: 0px 10px 10px 10px;
  margin-left: 2px;
  box-shadow: 5px 5px 2px #666;

/*areaにis-activeというクラスがついた時の形状*/ {
  display: block; /*表示*/
  animation-name: displayAnime; /*ふわっと表示させるためのアニメーション*/
  animation-duration: 2s;
  animation-fill-mode: forwards;

@keyframes displayAnime {
  from {
    opacity: 0;
  to {
    opacity: 1;

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

body {
  background: #eee;

ul {
  list-style: none;

a {
  color: #333;
  font-size: clamp(10px, 5vw, 15px);
  text-decoration: none;

.wrapper {
  width: 95%;
  max-width: 960px;
  margin: 30px auto;
  /*background: #fefefe;*/

h2 {
  margin: 10px 20px;
  font-size: clamp(12px, 5vw, 2rem);

.area h2 {
  font-size: 1.3rem;
  margin: 0 0 20px 10px;

.area li {
  padding: 10px;
  font-size: clamp(12px, 5vw, 1rem);
  border-bottom: 1px dashed #333;



function GethashID(hashIDName) {
  if (hashIDName) {
    $(".tab li")
      .each(function () {
        var idName = $(this).attr("href"); //タブ内のaタグのリンク名(例)#lunchの値を取得
        if (idName == hashIDName) {
          var parentElm = $(this).parent(); //タブ内のaタグの親要素(li)を取得
          $(".tab li").removeClass("active"); //タブ内のliについているactiveクラスを取り除き
          $(parentElm).addClass("active"); //リンク元の指定されたURLのハッシュタグとタブ内のリンク名が同じであれば、liにactiveクラスを追加
          $(".area").removeClass("is-active"); //もともとついているis-activeクラスを取り除き
          $(hashIDName).addClass("is-active"); //表示させたいエリアのタブリンク名をクリックしたら、表示エリアにis-activeクラスを追加

$(".tab a").on("click", function () {
  var idName = $(this).attr("href"); //タブ内のリンク名を取得
  GethashID(idName); //設定したタブの読み込みと
  return false; //aタグを無効にする

// 上記の動きをページが読み込まれたらすぐに動かす
$(window).on("load", function () {
  $(".tab li:first-of-type").addClass("active"); //最初のliにactiveクラスを追加
  $(".area:first-of-type").addClass("is-active"); //最初の.areaにis-activeクラスを追加
  var hashName = location.hash; //リンク元の指定されたURLのハッシュタグを取得
  GethashID(hashName); //設定したタブの読み込み