Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <p class="bottom_text">⇩</p>
<p class="bottom_text">⇩</p>
<!-- フワッと画像表示 ↓ -->
<div class="fluffy">
<p>フワッと左から出現</p>
<ul class="flex fluffy">
  <li><img src="https://drive.google.com/uc?export=view&id=11KoqHthbV3JwDf59d8xjxDYoR8qMcCH-"></li>
  <li><img src="https://drive.google.com/uc?export=view&id=1c26gGH5R104OesaFr_rDgZme4JfjmzFu"></li>
  <li><img src="https://drive.google.com/uc?export=view&id=1OrTZpW4jcKae7jjvM_fgvqWNZ_nIoDT-"></li>
  <li><img src="https://drive.google.com/uc?export=view&id=1raqw53oRzGwQMX207jW1cxmJwIkCtsj6"></li>
    <li><img src="https://drive.google.com/uc?export=view&id=11KoqHthbV3JwDf59d8xjxDYoR8qMcCH-"></li>
  <li><img src="https://drive.google.com/uc?export=view&id=1c26gGH5R104OesaFr_rDgZme4JfjmzFu"></li>
  <li><img src="https://drive.google.com/uc?export=view&id=1OrTZpW4jcKae7jjvM_fgvqWNZ_nIoDT-"></li>
  <li><img src="https://drive.google.com/uc?export=view&id=1raqw53oRzGwQMX207jW1cxmJwIkCtsj6"></li>
</ul>
</div>
<!-- フワッと画像表示 ↑ -->
<div class="height"></div>
              
            
!

CSS

              
                ul,li{padding:0;margin:0;}
.bottom_text{text-align:center;font-size:120px;}
.height{height:50px;}
.flex{display: flex;justify-content: center; flex-wrap: wrap;}
p{text-align:center;font-size:20px;font-weight:600;}
ul.fluffy li {list-style:none;object-fit: cover;margin-right:10px;}
img{width:400px;height:200px;}
/*------------------------------------
ふわっとCSS↓
------------------------------------*/
.fadeup {
  animation-name: fadeupAnime;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes fadeupAnime{
  from {
  opacity: 0;
  transform: translateX(-100px); /*左から出現*/ 
  }
  to {
  opacity: 1;
  transform: translateY(0);
  }
}
@media screen and (max-width: 600px) {
  .fluffy img {
    width: 100%;
    margin: auto;
    display: block;
    padding: 10px 0;
  }
}
              
            
!

JS

              
                //左からふわっと順番に表示
function fluffyAnime() {
	var time = 0.5; //表示時間
	var value = time;
	$('.fluffy').each(function () {
		var parent = this; //親要素を取得
		var elemPos = $(this).offset().top; //要素の位置まで来たら
		var scroll = $(window).scrollTop(); //スクロール値取得
		var windowHeight = $(window).height(); //画面の高さ取得
		var childs = $(this).children(); //子要素を取得
		if (scroll >= elemPos - windowHeight && !$(parent).hasClass("play")) { //指定領域内にスクロールが入ったらまた親要素にクラスplayがなければ
			$(childs).each(function () {
				if (!$(this).hasClass("fadeup")) { //アニメーションのクラス名が指定されているかどうかをチェック
					$(parent).addClass("play"); //親要素にクラス名playを追加
					$(this).css("animation-delay", value + "s"); //アニメーション遅延のCSS animation-delayを追加し
					$(this).addClass("fadeup"); //アニメーションのクラス名を追加
					value = value + time; //delay時間を増加させる
					//全ての処理を終わったらplayを外す
					var index = $(childs).index(this);
					if((childs.length-1) == index){
						$(parent).removeClass("play");
					}
				}
			})
		}else {
			$(childs).removeClass("fadeup"); //アニメーションのクラス名を削除
			value = time; //delay初期値の数値に戻す
		}
	})
}
$(window).scroll(function (){
  fluffyAnime(); /* アニメーション用関数を呼ぶ*/
});
$(window).on('load', function(){
  fluffyAnime(); /* アニメーション用関数を呼ぶ*/
});
              
            
!
999px

Console