|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div id="scroll">
|
|
|
<div class="top-nav">
|
|
|
<div class="container">
|
|
|
<ul>
|
|
|
@@ -118,37 +118,37 @@
|
|
|
<!-- 1 -->
|
|
|
<div class="ts-box">
|
|
|
<div>
|
|
|
- <img class="left" src="/static/img/feature/for2x.png" alt="">
|
|
|
+ <img class="left animate1" src="/static/img/feature/for2x.png" alt="">
|
|
|
</div>
|
|
|
<div>
|
|
|
- <img class="right" src="/static/img/feature/onemin2x.png" alt="">
|
|
|
+ <img class="right animate1" src="/static/img/feature/onemin2x.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 2 -->
|
|
|
<div class="ts-box ts-boxtow">
|
|
|
<div>
|
|
|
- <img class="left" src="/static/img/feature/towmin2x.png" alt="">
|
|
|
+ <img class="left animate2" src="/static/img/feature/towmin2x.png" alt="">
|
|
|
</div>
|
|
|
<div>
|
|
|
- <img class="right" style="margin-right:20px; width:80%" src="/static/img/feature/three2x.png" alt="">
|
|
|
+ <img class="right animate2" style="margin-right:20px; width:80%" src="/static/img/feature/three2x.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 3 -->
|
|
|
<div class="ts-box" style="padding-bottom:0px">
|
|
|
<div>
|
|
|
- <img class="left" style="width:88%" src="/static/img/feature/one2x.png" alt="">
|
|
|
+ <img class="left animate3" style="width:88%" src="/static/img/feature/one2x.png" alt="">
|
|
|
</div>
|
|
|
<div>
|
|
|
- <img class="right" style="margin-top:-30%;" src="/static/img/feature/threemin2x.png" alt="">
|
|
|
+ <img class="right animate3-2" style="margin-top:-30%;" src="/static/img/feature/threemin2x.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 4 -->
|
|
|
<div class="ts-box ts-boxtow ts-forbox" style="padding-bottom:0px">
|
|
|
<div>
|
|
|
- <img class="left" style="margin-top:-39%;" src="/static/img/feature/formin2x.png" alt="">
|
|
|
+ <img class="left animate4-1" style="margin-top:-39%;" src="/static/img/feature/formin2x.png" alt="">
|
|
|
</div>
|
|
|
<div>
|
|
|
- <img class="right" style="margin-right:30px;" src="/static/img/feature/tow2x.png" alt="">
|
|
|
+ <img class="right animate4" style="margin-right:30px;" src="/static/img/feature/tow2x.png" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -329,6 +329,82 @@
|
|
|
// 从本地加载已经登录的信息
|
|
|
this.account = Session.getAccount()
|
|
|
document.documentElement.scrollTop = this.isfeature;
|
|
|
+ $(window).scroll(function() {
|
|
|
+ let Y = $(window).scrollTop();
|
|
|
+ console.log(Y);
|
|
|
+ if (Y >= 500 && Y <= 1500) {
|
|
|
+ $(".animate1").stop();
|
|
|
+ $(".animate1").animate({
|
|
|
+ top:'0px',
|
|
|
+ opacity:'1'
|
|
|
+ },1000);
|
|
|
+ } else {
|
|
|
+ $(".animate1").stop();
|
|
|
+ $(".animate1").animate({
|
|
|
+ top:'100px',
|
|
|
+ opacity:'0'
|
|
|
+ },1000);
|
|
|
+ };
|
|
|
+ if (Y > 1200 && Y < 2200) {
|
|
|
+ $(".animate2").stop();
|
|
|
+ $(".animate2").animate({
|
|
|
+ top:'0px',
|
|
|
+ opacity:'1'
|
|
|
+ },1000);
|
|
|
+ } else {
|
|
|
+ $(".animate2").stop();
|
|
|
+ $(".animate2").animate({
|
|
|
+ top:'100px',
|
|
|
+ opacity:'0'
|
|
|
+ },1000);
|
|
|
+ };
|
|
|
+ if (Y > 1900 && Y < 2900) {
|
|
|
+ $(".animate3").stop();
|
|
|
+ $(".animate3").animate({
|
|
|
+ top:'0px',
|
|
|
+ opacity:'1'
|
|
|
+ },1000);
|
|
|
+ $(".animate3-2").stop();
|
|
|
+ $(".animate3-2").animate({
|
|
|
+ marginTop:'-60%',
|
|
|
+ opacity:'1'
|
|
|
+ },1000);
|
|
|
+ } else {
|
|
|
+ $(".animate3").stop();
|
|
|
+ $(".animate3").animate({
|
|
|
+ top:'100px',
|
|
|
+ opacity:'0'
|
|
|
+ },1000);
|
|
|
+ $(".animate3-2").stop();
|
|
|
+ $(".animate3-2").animate({
|
|
|
+ marginTop:'-30%',
|
|
|
+ opacity:'0'
|
|
|
+ },1000);
|
|
|
+ };
|
|
|
+ if (Y > 2600 && Y < 3600) {
|
|
|
+ $(".animate4").stop();
|
|
|
+ $(".animate4").animate({
|
|
|
+ top:'0px',
|
|
|
+ opacity:'1'
|
|
|
+ },1000);
|
|
|
+ $(".animate4-1").stop();
|
|
|
+ $(".animate4-1").animate({
|
|
|
+ marginTop:'-60%',
|
|
|
+ opacity:'1'
|
|
|
+ },1000);
|
|
|
+ } else {
|
|
|
+ $(".animate4").stop();
|
|
|
+ $(".animate4").animate({
|
|
|
+ top:'100px',
|
|
|
+ opacity:'0'
|
|
|
+ },1000);
|
|
|
+ $(".animate4-1").stop();
|
|
|
+ $(".animate4-1").animate({
|
|
|
+ marginTop:'-30%',
|
|
|
+ opacity:'0'
|
|
|
+ },1000);
|
|
|
+ };
|
|
|
+ })
|
|
|
},
|
|
|
computed: {
|
|
|
setTokenPage() {
|
|
|
@@ -490,6 +566,14 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+.ts-box {
|
|
|
+ height: 700px;
|
|
|
+}
|
|
|
+.animate1, .animate2, .animate3, .animate4, .animate4-1, .animate3-2 {
|
|
|
+ position: relative;
|
|
|
+ opacity: 0;
|
|
|
+ top: 100px;
|
|
|
+}
|
|
|
.shut {
|
|
|
cursor: pointer;
|
|
|
position: absolute;
|