
视差
视差是一种效果,在这种情况下,背景内容或图像在滚动时以与前景内容不同的速度移动。
视差演示 HTML
<div class="parallax-container">
<div class="parallax"><img src="images/parallax1.jpg"></div>
</div>
<div class="section white">
<div class="row container">
<h2 class="header">Parallax</h2>
<p class="grey-text text-darken-3 lighten-3">Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.</p>
</div>
</div>
<div class="parallax-container">
<div class="parallax"><img src="images/parallax2.jpg"></div>
</div>
