加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 30.29 KB
一键复制 编辑 原始数据 按行查看 历史
1570005439@qq.com 提交于 2019-11-28 15:22 . 音乐问题
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>纪念册</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<!-- Link Swiper's CSS -->
<link rel="stylesheet" href="./css/swiper.min.css">
<link rel="stylesheet" href="./css/animate.min.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div id="audio_btn" class="rotate">
<audio loop src="./images/bgm.mp3" id="media" autoplay></audio><!--autoplay-->
</div>
<!-- Swiper -->
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="fadeInUp"
swiper-animate-duration=".5s"
swiper-animate-delay="1s">相遇2012</h1>
<div class="imgBox">
<div class="img">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2s"
src="./images/dx.jpg"
alt="">
</div>
<div class="img2">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="3s"
src="./images/xy.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="4s"
src="./images/xy1.jpg"
alt="">
</div>
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="5s"
src="./images/xyd.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="6s"
src="./images/xyj.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="7s"
src="./images/xyg.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="8s"
src="./images/xyw.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="9s"
src="./images/xym.jpg"
alt="">
</div>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay="1s">四年相伴,各种浪</h1>
<div class="imgBox">
<div class="img">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2s"
src="./images/cql6.jpg"
alt="">
</div>
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="4s"
src="./images/cql8.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="5s"
src="./images/cql5.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="10s"
src="./images/cql1.jpg"
alt="">
</div>
<div class="img">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="9s"
src="./images/cql7.jpg"
alt="">
</div>
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="6s"
src="./images/cql2.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="7s"
src="./images/cql3.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="8s"
src="./images/cql4.jpg"
alt="">
</div>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="rollIn"
swiper-animate-duration="1s"
swiper-animate-delay="1s">艳遇丽江</h1>
<div class="imgBox">
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="6s"
src="./images/ljl3.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="4s"
src="./images/ljl4.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="8s"
src="./images/ljl5.jpg"
alt="">
</div>
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="10s"
src="./images/ljl6.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="7s"
src="./images/ljl.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="5s"
src="./images/ljl1.jpg"
alt="">
</div>
<div class="img">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="9s"
src="./images/ljl7.jpg"
alt="">
</div>
<div class="img">
<img
class="ani"
swiper-animate-effect="rollIn"
swiper-animate-duration=".5s"
swiper-animate-delay="1.5s"
src="./images/ljl2.jpg" alt="">
<span
class="ani"
swiper-animate-effect="rollIn"
swiper-animate-duration=".5s"
swiper-animate-delay="2s">=></span>
<em
class="ani"
swiper-animate-effect="rollIn"
swiper-animate-duration=".5s"
swiper-animate-delay="2.5s">四方街二傻</em>
</div>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay=".5s">黄鼠狼给鸡拜年</h1>
<div class="imgBox">
<div class="img2">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="1.5s"
src="./images/xpy2.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="3.5s"
src="./images/xpy4.jpg"
alt="">
</div>
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="2.5s"
src="./images/xpy.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="4.5s"
src="./images/xpy1.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="7.5s"
src="./images/xpy3.jpg"
alt="">
</div>
<div class="img">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="5.5s"
src="./images/xpy5.jpg" alt="">
</div>
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="8.5s"
src="./images/xpy6.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="6.5s"
src="./images/xpy7.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="9.5s"
src="./images/xpy8.jpg"
alt="">
</div>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="fadeInUp"
swiper-animate-duration=".5s"
swiper-animate-delay="1s">毕业快乐</h1>
<div class="imgBox">
<div class="img2">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2s"
src="./images/by1.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="5s"
src="./images/by2.jpg"
alt="">
</div>
<div>
<img
style="width:80%;"
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="3s"
src="./images/by5.jpg" alt="">
</div>
<div class="img2">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="4s"
src="./images/by3.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="6s"
src="./images/by4.jpg"
alt="">
</div>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="fadeInLeft"
swiper-animate-duration=".5s"
swiper-animate-delay="1s">美居美家</h1>
<div class="imgBox">
<div class="img2">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="5s"
src="./images/mjmj1.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2s"
src="./images/mjmj.jpg"
alt="">
</div>
<div class="img2">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="4s"
src="./images/mjmj2.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="3s"
src="./images/mjmj3.jpg"
alt="">
</div>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="fadeInRight"
swiper-animate-duration=".5s"
swiper-animate-delay=".5s">华龙苑</h1>
<p
class="hly ani"
swiper-animate-effect="fadeInRight"
swiper-animate-duration=".5s"
swiper-animate-delay="1s">我竟然没有什么美照!但是,脑袋里有,老夏、老李、老柯、大头、大壮和麻将</p>
<div class="imgBox">
<div class="img1">
<img
class="ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="4s"
src="./images/hly.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2s"
src="./images/hly1.jpg"
alt="">
<img
class="ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="3s"
src="./images/hly2.jpg"
alt="">
</div>
<p
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="5s">还有半夜的《昆池岩》、《厉鬼将映》、以及吓尿的《招魂》</p>
</div>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<h1
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay=".5s">北漂VS南飞</h1>
<p class="nCon ani"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay="1s">你们在中国 <em>6</em> 环内,</p>
<p class="nCon ani"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="1.5s">我们在中国 <em>27</em> 环外!</p>
<p class="nCon ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2s">还行,都还在!</p>
<!-- <p>散伙是人间常态,孤独是人生百态</p> -->
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg1">
<div class="con">
<!-- <h1
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay=".5s">还没完!</h1> -->
<p
class="comeOn ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay=".5s"></pclass>
<p
class="comeOn ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay="1s"></p>
<p
class="comeOn ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay="1.5s"></p>
<p
class="comeOn ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay="2s"></p>
<p
class="comeOn ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay="2.5s"></p>
<p
class="comeOn ani"
swiper-animate-effect="lightSpeedIn"
swiper-animate-duration="1s"
swiper-animate-delay="3.5s"></p>
</div>
<div class="downBtn"></div>
</div>
<div class="swiper-slide bg2">
<div class="con">
<h1
class="ani title"
swiper-animate-effect="zoomInLeft"
swiper-animate-duration="1s"
swiper-animate-delay=".5s">那年的黄鼠狼,修成正果</h1>
<div class="jh-img">
<img
class="ani"
swiper-animate-effect="zoomInUp"
swiper-animate-duration="1s"
swiper-animate-delay="1.5s"
src="./images/jh1.jpg" alt="">
<img
class="ani"
swiper-animate-effect="zoomInDown"
swiper-animate-duration="1s"
swiper-animate-delay="2.5s"
src="./images/jh2.jpg" alt="">
</div>
<p
class="ani jh-con"
swiper-animate-effect="zoomInRight"
swiper-animate-duration="1s"
swiper-animate-delay="3.5s">小伙伴们,大年初六(2020.1.30),云南大理,我请你们喝喜酒呀!</p>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
<!-- Swiper JS -->
<script src="./js/jquery-1.11.3.min.js"></script>
<script src="./js/swiper.min.js"></script>
<script src="./js/swiper.animate1.0.3.min.js"></script>
<!-- Initialize Swiper -->
<script>
var swiper = new Swiper('.swiper-container', {
direction: 'vertical',
on: {
init: function () {
swiperAnimateCache(this); //隐藏动画元素
swiperAnimate(this); //初始化完成开始动画
},
slideChangeTransitionEnd: function () {
swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
//this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); 动画只展现一次,去除ani类名
}
}
});
var audio = document.getElementById('media');
$(function(){
$("#audio_btn").click(function(){
$(this).toggleClass("rotate"); //控制音乐图标 自转或暂停
//控制背景音乐 播放或暂停
if($(this).hasClass("rotate")){
audio.play();
}else{
audio.pause();
}
})
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化