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.


                <ul class="slider">


                /* リセットCSS */
body,ul,li {padding: 0;margin: 0;}
/* スリックスライダー */
.slider li {
  height: 100vh;
  background-size: cover;
  background-position: center;
.slider li:first-of-type {
	background-image: url(;
.slider li:nth-child(2) {
	background-image: url(;
.slider li:last-of-type {
	background-image: url(;
/* 拡大率調整 */
@keyframes fadezoom {
  0% {
    transform: scale(1);
  100% {
    transform: scale(1.3);
/* ズームアニメーション */
.animation {
  animation: fadezoom 15s 0s forwards;


                $(function () {
  var isFirstSlide = true;
    // 1番目のスライドに"animation"のclassを付ける
    .on("init", function () {
      autoplay: true, //スライダーの自動再生
      fade: true, //スライドの切り替えをフェードに
      arrows: false, //前へ、次への矢印ボタンの有無
      speed: 6000, // スライド、フェードアニメーションの速度1000ミリ秒
      autoplaySpeed: 3000, //自動再生時のスライドの静止時間
      pauseOnFocus: false, //フォーカスで一時停止を無効
      pauseOnHover: false, //マウスホバーで一時停止を無効
      pauseOnDotsHover: false, //ドットナビゲーションをマウスホバーで一時停止を無効
      // スライドが移動する前に表示されているスライドに"animation"のclassをつける
      // "animation"のclassを消すための"remove"classを付ける
      beforeChange: function (event, slick, currentSlide, nextSlide) {
        $(".slick-slide", this).eq(nextSlide).addClass("animation");
        $(".slick-slide", this).eq(currentSlide).addClass("remove");
      // スライドが移動した後に表示していないスライダーはアニメーションのclassを外す
      afterChange: function () {
        $(".remove", this).removeClass(
          "remove animation"