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.


                        <div class="slider">
          <div class="slider-img slider-img-01">
          <div class="slider-img slider-img-02">
          <div class="slider-img slider-img-03">


                  .slider {
    width: 100%;
    height: 500px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    padding: 0;
    margin: 0;
  .slider-img {
    content: "";
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    width: 100%;
    height: 300px;/*スライド画像の高さ*/
  .slider-img-01 {
    background-image: url(;
  .slider-img-02 {
    background-image: url(;
  .slider-img-03 {
    background-image: url(;
  .slick-list {
    width: 100%;
@keyframes fadezoom {
  0% {
    transform: scale(1);
  100% {
    transform: scale(1.1); /* 拡大率 */
.add-zoom {
  animation: fadezoom 10s 0s forwards;


                $(function() {
    // 現在のスライドに"add-zoom"のclassを付与(data-slick-index="0"が現在のスライド)
    .on("init", function() {
      autoplay: true,
      fade: true, 
      arrows: false,
      speed: 2000, // スライド、フェードアニメーションの速度
      autoplaySpeed: 3000, // 自動再生の切り替え速度
      pauseOnFocus: false,
      pauseOnHover: false,
      // スライドが移動する前に発生するイベント
      beforeChange: function(event, slick, currentSlide, nextSlide) {
        // 現在のスライドに"add-zoom"のclassを付与
        $(".slick-slide", this).eq(nextSlide).addClass("add-zoom");
        // "add-zoom"のclassを消すための"remove-zoom"classを付与
        $(".slick-slide", this).eq(currentSlide).addClass("remove-zoom");
      // スライドが移動した後に発生するイベント
      afterChange: function() {
        // 現在のスライド以外は"add-zoom"のclassを削除
        $(".remove-zoom", this).removeClass(
          "remove-zoom add-zoom"