|
@@ -10,7 +10,7 @@ gsap.registerPlugin(ScrollTrigger);
|
|
|
|
|
|
ScrollTrigger.config({
|
|
|
autoRefreshEvents: "visibilitychange,DOMContentLoaded,load",
|
|
|
- limitCallbacks: true,
|
|
|
+ // limitCallbacks: true,
|
|
|
});
|
|
|
|
|
|
let resizeTimer = null;
|
|
@@ -42,17 +42,18 @@ function App() {
|
|
|
useEffect(() => {
|
|
|
window.addEventListener("resize", handlerResize, false);
|
|
|
handlerResize();
|
|
|
+ document.documentElement.style.overflow = "auto";
|
|
|
});
|
|
|
|
|
|
const pinForExit = {
|
|
|
onLeave: function (e) {
|
|
|
- console.error("pinForExit-onLeave", e.trigger);
|
|
|
+ // console.error("pinForExit-onLeave", e.trigger);
|
|
|
gsap.set(e.trigger, {
|
|
|
autoAlpha: 0,
|
|
|
});
|
|
|
},
|
|
|
onEnterBack: function (e) {
|
|
|
- console.error("pinForExit-onEnterBack", e.trigger);
|
|
|
+ // console.error("pinForExit-onEnterBack", e.trigger);
|
|
|
gsap.set(e.trigger, {
|
|
|
autoAlpha: 1,
|
|
|
});
|
|
@@ -99,6 +100,101 @@ function App() {
|
|
|
exitTween={pinForExit}
|
|
|
/>
|
|
|
</LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"400vh"}>
|
|
|
+ <Viewer
|
|
|
+ height={"400vh"}
|
|
|
+ name="Michaux Steadicam"
|
|
|
+ path="michaux-steadi-10fps-873-rev1"
|
|
|
+ frameCount={98}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"800vh"}>
|
|
|
+ <Viewer
|
|
|
+ height={"800vh"}
|
|
|
+ name="Michaux Render"
|
|
|
+ path="michaux-render-10fps-873-rev1"
|
|
|
+ frameCount={158}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"400vh"}>
|
|
|
+ <Viewer
|
|
|
+ height={"400vh"}
|
|
|
+ name="Gudea Architect Steadi"
|
|
|
+ path="gudea-architect-steadi-10fps-873-rev1"
|
|
|
+ frameCount={84}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+ <LazyLoad height={"800vh"}>
|
|
|
+ <Viewer
|
|
|
+ height={"800vh"}
|
|
|
+ name="Gudea Architect Render"
|
|
|
+ path="gudea-architect-render-10fps-873-rev1"
|
|
|
+ frameCount={201}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"800vh"}>
|
|
|
+ <Viewer
|
|
|
+ height={"800vh"}
|
|
|
+ name="Dictionary Steadi"
|
|
|
+ path="dictionary-steadi-10fps-873-rev1"
|
|
|
+ frameCount={258}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"300vh"}>
|
|
|
+ <Viewer
|
|
|
+ height={"300vh"}
|
|
|
+ name="Dictionary Render"
|
|
|
+ path="dictionary-steadi-10fps-873-rev1"
|
|
|
+ frameCount={45}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"200h"}>
|
|
|
+ <Viewer
|
|
|
+ height={"200h"}
|
|
|
+ name="Enheduanna Steadi "
|
|
|
+ path="enheduanna-steadi-10fps-873-rev1"
|
|
|
+ frameCount={40}
|
|
|
+ pause={{
|
|
|
+ 1: 80,
|
|
|
+ }}
|
|
|
+ enterTween={{
|
|
|
+ from: {
|
|
|
+ autoAlpha: 0,
|
|
|
+ y: 500,
|
|
|
+ },
|
|
|
+ }}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
+
|
|
|
+ <LazyLoad height={"200h"}>
|
|
|
+ <Viewer
|
|
|
+ height={"200h"}
|
|
|
+ name="Cone Steadi"
|
|
|
+ path="cone-steadi-10fps-873-rev1"
|
|
|
+ frameCount={256}
|
|
|
+ enterTween={crossFadeIn}
|
|
|
+ exitTween={pinForExit}
|
|
|
+ />
|
|
|
+ </LazyLoad>
|
|
|
</div>
|
|
|
);
|
|
|
}
|