|
|
@ -94,6 +94,8 @@ export default function scrollAction(state = initialState, action) { |
|
|
|
data.end |
|
|
|
data.end |
|
|
|
), |
|
|
|
), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
page2TopPosition: 0, |
|
|
|
|
|
|
|
page2RotateX: 0, |
|
|
|
}; |
|
|
|
}; |
|
|
|
case "scroll/page2/mobilePosition": |
|
|
|
case "scroll/page2/mobilePosition": |
|
|
|
return { |
|
|
|
return { |
|
|
@ -105,11 +107,13 @@ export default function scrollAction(state = initialState, action) { |
|
|
|
2 * height, |
|
|
|
2 * height, |
|
|
|
2.5 * height |
|
|
|
2.5 * height |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
page2BoxPosition: { translateX: 32, translateY: 10, rotate: 0 }, |
|
|
|
}; |
|
|
|
}; |
|
|
|
case "scroll/page2/videoPosition": |
|
|
|
case "scroll/page2/videoPosition": |
|
|
|
return { |
|
|
|
return { |
|
|
|
...state, |
|
|
|
...state, |
|
|
|
page2VideoPosition: scroll.videoLinearFormula(window.scrollY), |
|
|
|
page2VideoPosition: scroll.videoLinearFormula(window.scrollY), |
|
|
|
|
|
|
|
page2VideoTopPosition: 50, |
|
|
|
}; |
|
|
|
}; |
|
|
|
case "scroll/page2/videoTopPosition": |
|
|
|
case "scroll/page2/videoTopPosition": |
|
|
|
return { |
|
|
|
return { |
|
|
@ -121,6 +125,7 @@ export default function scrollAction(state = initialState, action) { |
|
|
|
2.8 * height, |
|
|
|
2.8 * height, |
|
|
|
3 * height |
|
|
|
3 * height |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
page2MobilePosition: 6, |
|
|
|
}; |
|
|
|
}; |
|
|
|
case "scroll/page2/mobileUnit": |
|
|
|
case "scroll/page2/mobileUnit": |
|
|
|
return { |
|
|
|
return { |
|
|
@ -130,6 +135,7 @@ export default function scrollAction(state = initialState, action) { |
|
|
|
case "scroll/videoTube/top": |
|
|
|
case "scroll/videoTube/top": |
|
|
|
return { ...state, videoTubeTopPosition: scroll.homeScrollHandler(3) }; |
|
|
|
return { ...state, videoTubeTopPosition: scroll.homeScrollHandler(3) }; |
|
|
|
case "scroll/test/translateY": |
|
|
|
case "scroll/test/translateY": |
|
|
|
|
|
|
|
const joiRect = JSON.parse(localStorage.getItem("joiRect")); |
|
|
|
return { |
|
|
|
return { |
|
|
|
...state, |
|
|
|
...state, |
|
|
|
testTranslateY: scroll.linearFormula( |
|
|
|
testTranslateY: scroll.linearFormula( |
|
|
@ -139,9 +145,16 @@ export default function scrollAction(state = initialState, action) { |
|
|
|
4.5 * height, |
|
|
|
4.5 * height, |
|
|
|
5 * height |
|
|
|
5 * height |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
videoTubeTopPosition: 0, |
|
|
|
|
|
|
|
page2VideoPosition: { |
|
|
|
|
|
|
|
width: joiRect.width, |
|
|
|
|
|
|
|
height: joiRect.height, |
|
|
|
|
|
|
|
top: joiRect.top, |
|
|
|
|
|
|
|
left: joiRect.left, |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
case "scroll/page3/top": |
|
|
|
case "scroll/page3/top": |
|
|
|
return { ...state, page3TopPosition: scroll.homeScrollHandler(4) }; |
|
|
|
return { ...state, page3TopPosition: scroll.homeScrollHandler(4), testTranslateY : -101 }; |
|
|
|
case "scroll/page3/testTranslateY": |
|
|
|
case "scroll/page3/testTranslateY": |
|
|
|
return { |
|
|
|
return { |
|
|
|
...state, |
|
|
|
...state, |
|
|
@ -152,9 +165,10 @@ export default function scrollAction(state = initialState, action) { |
|
|
|
6.3 * height, |
|
|
|
6.3 * height, |
|
|
|
7 * height |
|
|
|
7 * height |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
page3TopPosition : 0, |
|
|
|
}; |
|
|
|
}; |
|
|
|
case "scroll/page4/top": |
|
|
|
case "scroll/page4/top": |
|
|
|
return { ...state, page4TopPosition: scroll.homeScrollHandler(5) }; |
|
|
|
return { ...state, page4TopPosition: scroll.homeScrollHandler(5), page3TestTranslateY : 100 }; |
|
|
|
default: |
|
|
|
default: |
|
|
|
return state; |
|
|
|
return state; |
|
|
|
} |
|
|
|
} |
|
|
|