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 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="slideshow-container">
  <!-- スライドショーの各要素の画像とコンテンツを組み合わせる-->
   <div class="mySlides fade">
     <div class="numbertext">1 / 3</div>
     <img src="" style="width:100%">
     <div class="text">コンテンツ 1</div>
  <div class="mySlides fade">
     <div class="numbertext">2 / 3</div>
     <img src="" style="width:100%">
     <div class="text">コンテンツ 2</div>
  <div class="mySlides fade">
     <div class="numbertext">3 / 3</div>
     <img src="" style="width:100%">
     <div class="text">コンテンツ 3</div>
  <!-- 矢印コントロールボタン-->
   <a class="prev" onclick="plusSlides(-1)">❮</a>
   <a class="next" onclick="plusSlides(1)">❯</a>
<!-- スライドショーコントロールサークルボタン-->
 <div style="text-align:center">
   <span class="dot" onclick="currentSlide(1)"></span>
   <span class="dot" onclick="currentSlide(2)"></span>
   <span class="dot" onclick="currentSlide(3)"></span>


                * {box-sizing:border-box}
/* スライドショーコンテナのスタイルを設定する */
 .slideshow-container {
   max-width: 1000px;
   position: relative;
   margin: auto;
/* スライドショー要素の画像を非表示*/
 .mySlides {
   display: none;
/* 矢印ボタンのデザイン*/
 .prev, .next {
   cursor: pointer;
   position: absolute;
   top: 50%;
   width: auto;
   margin-top: -22px;
   padding: 16px;
   color: white;
   font-weight: bold;
   font-size: 18px;
   transition: 0.6s ease;
   border-radius: 0 3px 3px 0;
   user-select: none;
/* 次の矢印ボタンのデザインは右側にあります */
 .next {
   right: 0;
   border-radius: 3px 0 0 3px;
/* 矢印ボタンにカーソルを合わせると、背景が変化する効果*/
 .prev:hover, .next:hover {
   background-color: rgba(0,0,0,0.8);
/* 各スライドショー要素のコンテンツのスタイルを設定します */
 .text {
   color: #f2f2f2;
   font-size: 15px;
   padding: 8px 12px;
   position: absolute;
   bottom: 8px;
   width: 100%;
   text-align: center;
/* 要素の表示番号のスタイルを設定します */
 .numbertext {
   color: #f2f2f2;
   font-size: 12px;
   padding: 8px 12px;
   position: absolute;
   top: 0;
/* コントロールサークルボタンのスタイルを設定する*/
 .dot {
   cursor: pointer;
   height: 15px;
   width: 15px;
   margin: 0 2px;
   background-color: #bbb;
   border-radius: 50%;
   display: inline-block;
   transition: background-color 0.6s ease;
.active, .dot:hover {
   background-color: #717171;
/* フェードモーションエフェクトを作成する */
 .fade {
   -webkit-animation-name: fade;
   -webkit-animation-duration: 1.5s;
   animation-name: fade;
   animation-duration: 1.5s;
@-webkit-keyframes fade {
   from {opacity: .4}
   to {opacity: 1}
@keyframes fade {
   from {opacity: .4}
   to {opacity: 1}


                var slideIndex = 1;
function plusSlides(n) {
   showSlides(slideIndex += n);
function currentSlide(n) {
   showSlides(slideIndex = n);
function showSlides(n) {
   var i;
   var slides = document.getElementsByClassName("mySlides");
   var dots = document.getElementsByClassName("dot");
   if (n > slides.length) {slideIndex = 1}
   if (n < 1) {slideIndex = slides.length}
   for (i = 0; i < slides.length; i++) {
       slides[i].style.display = "none";
   for (i = 0; i < dots.length; i++) {
       dots[i].className = dots[i].className.replace(" active", "");
   slides[slideIndex-1].style.display = "block";
   dots[slideIndex-1].className += " active";