使用fullPage做的大图片全屏滚动

发布时间:2020-07-21 12:38:28 作者:jiazhipeng12
来源:网络 阅读:2315

本地的图片和css等文件

<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<title>fullPage.js — 背景演示_dowebok</title>

<!--网页的链接css <link rel="stylesheet" href="http://cdn.dowebok.com/77/css/jquery.fullPage.css"> -->

<link rel="stylesheet" href="css/jquery.fullPage.css">

<style>

.section1 { background: url(picuter/1.jpg) 50%;}

.slide{ background: url(picuter/statics-topic-pi-assets-img-panel4_bg3.jpg) 50%;}

.section3 { background: url(picuter/statics-topic-pi-assets-img-panel3_bg3.jpg) 50%;}

.section4 { background: url(picuter/statics-topic-pi-assets-img-panel4_bg1.jpg) 50%;}

</style>

<script src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>

<!-- <script src="http://cdn.dowebok.com/77/js/jquery.fullPage.min.js"></script> -->

<script src="script/jquery.fullPage.min.js"></script>

<script>

$(function(){

$('#dowebok').fullpage();

setInterval(function(){

        $.fn.fullpage.moveSlideRight();  //自动向右滚动

    }, 3000);

});

/* function xian(){            moveSectionDown()向下滚动

  alert({}+'a'<{}+'b');

} */

</script>

</head>


<body>


<div id="dowebok">

<div class="section section1"><center>仙哥的天堂</center></div>

<div class="section section2">

   <div class="slide"></div>

        <div class="slide"><img src="picuter/statics-topic-pi-assets-img-panel3_bg1.jpg"></img></div>

        <div class="slide"><img src="picuter/statics-topic-pi-assets-img-panel3_bg2.jpg"></img></div>

</div>

<div class="section section3"></div>

<div class="section section4"></div>

</div>

<a href="http://www.dowebok.com/" >dowebok</a>

<a href="http://www.dowebok.com/77.html" >jQuery全屏滚动插件fullPage.js</a>

<script src="http://hm.baidu.com/h.js?988268596e7a833ffbfb2e9f82d93e18"></script>

</body>

</html>




网络的css和图片等文件



<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<title>fullPage.js — 背景演示_dowebok</title>

<link rel="stylesheet" href="http://cdn.dowebok.com/77/css/jquery.fullPage.css">

<style>

.section1 { background: url(http://www.taofoot.com/1.jpg) 50%;}

.slide{ background: url(https://cache.yisu.com/upload/information/20200311/55/213631.jpg) 50%;}

.section3 { background: url(https://cache.yisu.com/upload/information/20200311/55/213632.jpg) 50%;}

.section4 { background: url(https://cache.yisu.com/upload/information/20200311/55/213633.jpg) 50%;}

</style>

<script src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>

<script src="http://cdn.dowebok.com/77/js/jquery.fullPage.min.js"></script>

<script>

$(function(){

$('#dowebok').fullpage();

});

</script>

</head>


<body>


<div id="dowebok">

<div class="section section1"><center>仙哥的天堂</center></div>

<div class="section section2">

   <div class="slide"></div>

        <div class="slide"><img src="https://cache.yisu.com/upload/information/20200311/55/213634.jpg"></img></div>

        <div class="slide"><img src="https://cache.yisu.com/upload/information/20200311/55/213635.jpg"></img></div>

</div>

<div class="section section3"></div>

<div class="section section4"></div>

</div>

<a href="http://www.dowebok.com/" >dowebok</a>

<a href="http://www.dowebok.com/77.html" >jQuery全屏滚动插件fullPage.js</a>

<script src="http://hm.baidu.com/h.js?988268596e7a833ffbfb2e9f82d93e18"></script>


</body>

</html>



附件:http://down.51cto.com/data/2365483
推荐阅读:
  1. fullPage教程 -- 整屏滚动效果插件 fullpage详解
  2. vue实现全屏滚动效果(非fullpage.js)

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

图片 全屏滚动 background

上一篇:iOS 对象的归档

下一篇:C++编写的十进制转换成16进制源码

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》