index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>长列表滚动</title>
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  8. <meta name="description" content="">
  9. <meta name="keywords" content="">
  10. <link href="" rel="stylesheet">
  11. <style>
  12. * {
  13. margin: 0;
  14. padding: 0;
  15. }
  16. .page li {
  17. height: 50px;
  18. padding: 0 10px;
  19. /*background: #f2f2f2;*/
  20. }
  21. .bgyuan {
  22. animation: action 4s linear infinite;
  23. animation-direction: alternate;
  24. /*轮流反向播放动画。*/
  25. animation-timing-function: ease-in-out;
  26. /*动画的速度曲线*/
  27. }
  28. /* .hongbao {
  29. animation: zy 1.5s .15s linear infinite;
  30. -moz-animation: zy 1.5s .15s linear infinite;
  31. -webkit-animation: zy 1.5s .15s linear infinite;
  32. -o-animation: zy 1.5s .15s linear infinite;
  33. } */
  34. .jinbi {
  35. animation: wy 1.5s .15s linear;
  36. -moz-animation: wy 1.5s .15s linear;
  37. /* Firefox */
  38. -webkit-animation: wy 1.5s .15s linear;
  39. /* Safari and Chrome */
  40. -o-animation: wy 1.5s .15s linear;
  41. /* Opera */
  42. }
  43. @keyframes wy {
  44. 0% {
  45. transform: translate(0, 0);
  46. }
  47. /* 50% {
  48. transform: translate(100px,-100PX);
  49. } */
  50. 100% {
  51. transform: translate(0, 200PX);
  52. }
  53. }
  54. @-o-keyframes wy {
  55. 0% {
  56. transform: translate(0, 0);
  57. }
  58. 100% {
  59. transform: translate(0, 200PX);
  60. }
  61. }
  62. @-moz-keyframes wy {
  63. 0% {
  64. transform: translate(0, 0);
  65. }
  66. 100% {
  67. transform: translate(0, 200PX);
  68. }
  69. }
  70. @-webkit-keyframes wy {
  71. 0% {
  72. transform: translate(0, 0);
  73. }
  74. 100% {
  75. transform: translate(0, 200PX);
  76. }
  77. }
  78. @-webkit-keyframes action {
  79. 0% {
  80. transform: rotate(0deg) scale(1);
  81. }
  82. 50% {
  83. transform: rotate(360deg) scale(1.4);
  84. }
  85. 100% {
  86. transform: rotate(0deg) scale(1);
  87. }
  88. }
  89. @-moz-keyframes action {
  90. 0% {
  91. transform: rotate(0deg) scale(1);
  92. }
  93. 50% {
  94. transform: rotate(360deg) scale(1.4);
  95. }
  96. 100% {
  97. transform: rotate(0deg) scale(1);
  98. }
  99. }
  100. @-o-keyframes action {
  101. 0% {
  102. transform: rotate(0deg) scale(1);
  103. }
  104. 50% {
  105. transform: rotate(360deg) scale(1.4);
  106. }
  107. 100% {
  108. transform: rotate(0deg) scale(1);
  109. }
  110. }
  111. @keyframes action {
  112. 0% {
  113. transform: rotate(0deg) scale(1);
  114. }
  115. 50% {
  116. transform: rotate(360deg) scale(1.4);
  117. }
  118. 100% {
  119. transform: rotate(0deg) scale(1);
  120. }
  121. }
  122. @-webkit-keyframes zy {
  123. 10% {
  124. transform: rotate(15deg);
  125. }
  126. 20% {
  127. transform: rotate(-10deg);
  128. }
  129. 30% {
  130. transform: rotate(5deg);
  131. }
  132. 40% {
  133. transform: rotate(-5deg);
  134. }
  135. 50%,
  136. 100% {
  137. transform: rotate(0deg);
  138. }
  139. }
  140. @-moz-keyframes zy {
  141. 10% {
  142. transform: rotate(15deg);
  143. }
  144. 20% {
  145. transform: rotate(-10deg);
  146. }
  147. 30% {
  148. transform: rotate(5deg);
  149. }
  150. 40% {
  151. transform: rotate(-5deg);
  152. }
  153. 50%,
  154. 100% {
  155. transform: rotate(0deg);
  156. }
  157. }
  158. @-o-keyframes zy {
  159. 10% {
  160. transform: rotate(15deg);
  161. }
  162. 20% {
  163. transform: rotate(-10deg);
  164. }
  165. 30% {
  166. transform: rotate(5deg);
  167. }
  168. 40% {
  169. transform: rotate(-5deg);
  170. }
  171. 50%,
  172. 100% {
  173. transform: rotate(0deg);
  174. }
  175. }
  176. @keyframes zy {
  177. 10% {
  178. transform: rotate(15deg);
  179. }
  180. 20% {
  181. transform: rotate(-10deg);
  182. }
  183. 30% {
  184. transform: rotate(5deg);
  185. }
  186. 40% {
  187. transform: rotate(-5deg);
  188. }
  189. 50%,
  190. 100% {
  191. transform: rotate(0deg);
  192. }
  193. }
  194. .circle_process {
  195. position: fixed;
  196. width: 50px;
  197. height: 50px;
  198. top: 220px;
  199. }
  200. .circle_process .wrapper {
  201. width: 25px;
  202. height: 50px;
  203. position: absolute;
  204. top: 0;
  205. overflow: hidden;
  206. }
  207. .circle_process .right {
  208. right: 0;
  209. }
  210. .circle_process .left {
  211. left: 0;
  212. }
  213. .circle_process .circle {
  214. width: 40px;
  215. height: 40px;
  216. border: 5px solid white;
  217. border-radius: 50%;
  218. position: absolute;
  219. top: 0;
  220. transform: rotate(-135deg);
  221. }
  222. .circle_process .rightcircle {
  223. border-top: 5px solid yellow;
  224. border-right: 5px solid yellow;
  225. right: 0;
  226. -webkit-animation: circle_right 10s linear infinite;
  227. animation-iteration-count: 1;
  228. animation-fill-mode: forwards;
  229. -webkit-animation-iteration-count: 1;
  230. -webkit-animation-fill-mode: forwards;
  231. }
  232. .circle_process .leftcircle {
  233. border-bottom: 5px solid yellow;
  234. border-left: 5px solid yellow;
  235. left: 0;
  236. -webkit-animation: circle_left 10s linear infinite;
  237. animation-iteration-count: 1;
  238. animation-fill-mode: forwards;
  239. -webkit-animation-iteration-count: 1;
  240. -webkit-animation-fill-mode: forwards;
  241. }
  242. @-webkit-keyframes circle_right {
  243. 0% {
  244. -webkit-transform: rotate(-135deg);
  245. }
  246. 50%,
  247. 100% {
  248. -webkit-transform: rotate(45deg);
  249. }
  250. }
  251. @-webkit-keyframes circle_left {
  252. 0%,
  253. 50% {
  254. -webkit-transform: rotate(-135deg);
  255. }
  256. 100% {
  257. -webkit-transform: rotate(45deg);
  258. }
  259. }
  260. </style>
  261. </head>
  262. <body>
  263. <div class="circle_process">
  264. <div class="wrapper right">
  265. <div class="circle rightcircle"></div>
  266. </div>
  267. <div class="wrapper left">
  268. <div class="circle leftcircle" id="leftcircle"></div>
  269. </div>
  270. <img src="./video/jinbi.png" style="position:absolute;top:15%;left:15%;width:70%;" alt="" class="hongbao">
  271. </div>
  272. <div id="list" style="padding-bottom:58px">
  273. <img src="./video/top.png" style="width:100%;position:fixed;top:0;z-index:1" alt="">
  274. <img src="./video/content.png" style="width:100%" alt="">
  275. <!-- <img src="./video/hongbao.png" style="width:80px;position:fixed;top:100px;left:10px;z-index:2" alt=""
  276. class="hongbao"> -->
  277. <img src="./video/gif.gif" alt="" style="width:100%;position:fixed;top:0px;z-index: 3;left:0;display: none"
  278. id="gifShow">
  279. </div>
  280. <!-- <img src="./video/jinbi.png" style="width:50px;position:fixed;left:20px;top:-100px;z-index:2;" alt="" id="fly"> -->
  281. <!-- class="jinbi" -->
  282. <div style="width:100%;min-height:60px;position:fixed;bottom:-4px;z-index:10">
  283. <div style="width:40%;height:100%;position:absolute;right:0;z-index: 10;" id="xiazai"></div>
  284. <img src="./video/3.png" style="width:100%;height:100%" alt="">
  285. </div>
  286. <div style="position: fixed;bottom:40px;left:50%;margin-left:-150px;z-index:1;display: none" id="show">
  287. <div>
  288. <img src="./video/btn.png" style="width:100px;position: absolute;
  289. top: 100px;
  290. left: 100px;z-index: 30;" alt="" id="tiaozhuan">
  291. <img src="./video/btnbg.png" style="width:300px;" alt="" class="bgyuan">
  292. </div>
  293. </div>
  294. <script src="https://sf3-ttcdn-tos.pstatp.com/obj/union-fe-nc/playable/sdk/playable-sdk.js"></script>
  295. <script type="text/javascript" src="./jquery.min.js"></script>
  296. <script type="text/javascript">
  297. // setTimeout(function(){
  298. // $(".hongbao").attr('src','./video/lingqu.png')
  299. // },10000)
  300. $('#xiazai').on('touchstart', function (e) {
  301. e.preventDefault()
  302. // e.stopPropagation()
  303. window.playableSDK.openAppStore()
  304. window.playableSDK.sendEvent('clickDownloadBar', {
  305. section: 'section1',
  306. area: 'area2'
  307. });
  308. })
  309. $('#tiaozhuan').on('touchstart', function (e) {
  310. e.preventDefault()
  311. // e.stopPropagation()
  312. window.playableSDK.openAppStore()
  313. window.playableSDK.sendEvent('clickDownloadBar', {
  314. section: 'section2',
  315. area: 'area3'
  316. });
  317. })
  318. $('.hongbao').on('touchstart', function (e) {
  319. e.preventDefault()
  320. // e.stopPropagation()
  321. window.playableSDK.openAppStore()
  322. window.playableSDK.sendEvent('clickDownloadBar', {
  323. section: 'section3',
  324. area: 'area4'
  325. });
  326. })
  327. var PAGE = 1; //初始化页数
  328. var PAGESIZE = 15; //每页展示几条数据
  329. var $list = $('#list'); //列表
  330. var preRemoveArray = []; //被移除的当前页面之前的页面
  331. var nextRemoveArray = []; //被移除的当前页面后面的页面
  332. var init = function () {
  333. // initPage();
  334. initEvent();
  335. };
  336. var a = 0
  337. var show = true
  338. var initEvent = function () {
  339. var $page;
  340. var length;
  341. window.onscroll = function () {
  342. if (show) {
  343. if (getScrollTop() > getScrollTop3() - 100 && getScrollTop() < getScrollTop3() + 100) {
  344. show = false
  345. $('#gifShow').show()
  346. setTimeout(function () {
  347. $('#gifShow').hide()
  348. }, 2000)
  349. }
  350. }
  351. if (isBottom()) {
  352. $("#show").show();
  353. $('#fly').addClass('jinbi')
  354. }
  355. };
  356. };
  357. var isBottom = function () {
  358. return getScrollTop() + window.screen.height >= document.body.clientHeight - 100;
  359. };
  360. var isTop = function () {
  361. return getScrollTop() === 0;
  362. };
  363. function getScrollTop() {
  364. return document.documentElement.scrollTop || document.body.scrollTop;
  365. }
  366. function getScrollTop3() {
  367. return window.innerHeight
  368. }
  369. init();
  370. </script>
  371. </body>
  372. </html>