最新赞助活动温馨提示:自愿赞助服务器费用,学生和没有工作的整站资源免费下载!
头像

js带视觉差的页面平滑滚动特效

来源:http://erdangjiade.com/js/8763.html 沐浴春风 2019-07-24 19:53浏览(479)

这是js带视觉差的页面平滑滚动特效。该特效中,在页面向下滚动的时候,页面中的图片相对于视口带有一些视觉差特效。

0、请不要问“在不在”之类的问题,有问题直接问!1、学生或暂时没有工作的童鞋,整站资源免费下载!2、¥9.9充值终身VIP会员,加我微信,826096331 拉你进VIP群学习!3、程序员加油,技术改变世界。在线 充值

js带视觉差的页面平滑滚动特效
分类:图片代码 > 图片插件 难易:
查看演示

加我微信,拉你进VIP群学习:

下载资源 下载积分: 20 积分

HTML结构

<main>
  <div data-scroll>
    <div class="frame">
      <div class="frame__title-wrap">
        <h1 class="frame__title">Smooth scrolling and inner image animation</h1>
      </div>
    </div>
    <div class="content">
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t1"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">Central view</h2>
          <p class="item__caption-copy">Great turbulent clouds emerged into consciousness citizens.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t2"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">Lost in time</h2>
          <p class="item__caption-copy">Brain is the seed of intelligence the sky calls to us a very small stage.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t3"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">Ready to land</h2>
          <p class="item__caption-copy">Cosmos encyclopaedia galactica a billion trillion culture cosmic ocean.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t1"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">All equal</h2>
          <p class="item__caption-copy">Network of wormholes dream of the mind's eye finite but unbounded concept.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t2"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">Connections</h2>
          <p class="item__caption-copy">Two ghostly white figures in coveralls and helmets are softly dancing vastness.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t3"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">The state of divergence</h2>
          <p class="item__caption-copy">Vastness is bearable only through love invent the universe vanquish.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t1"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">Open perspective</h2>
          <p class="item__caption-copy">The only home we've ever known concept of the number one.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t3"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">Discovery of shapes</h2>
          <p class="item__caption-copy">Decipherment explorations tesseract as a patch of light.</p>
        </div>
      </div>
      <div class="item">
        <div class="item__img-wrap"><div class="item__img item__img--t2"></div></div>
        <div class="item__caption">
          <h2 class="item__caption-title">The Observer</h2>
          <p class="item__caption-copy">Astonishment muse about dispassionate extraterrestrial observer.</p>
        </div>
      </div>
    </div>
  </div>
</main>
声明:本文为原创文章,如需转载,请注明来源erdangjiade.com并保留原文链接:https://www.erdangjiade.com/js/8763.html
评论3
头像

友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群

  • 头像 板凳
    01-02 10:25
    smz1314
    下载了源码,哈哈哈欠妥
  • 头像 椅子
    12-21 23:29
    wujun
    啊是大叔大叔大叔大所大所多
  • 头像 沙发
    08-24 08:29
    金木_一花
    做事要有始有终,善始善终
1 2