diff --git a/src/sections/Home/Playground-home/index.js b/src/sections/Home/Playground-home/index.js index 8fd172161627..807980549c6c 100644 --- a/src/sections/Home/Playground-home/index.js +++ b/src/sections/Home/Playground-home/index.js @@ -107,7 +107,7 @@ const ViewsSectionWrapper = styled.div` .overlay { width: 483px; - height: 680x; + height: 680px; } .container { @@ -115,24 +115,50 @@ const ViewsSectionWrapper = styled.div` justify-content: center; } - .line1 { + .line { display: flex; flex-direction: column; align-items: center; margin-right: 2rem; - transform: translateY(50px); flex-wrap: wrap; } + .position-line-down{ + transform: translateY(-20em); + } + .position-line-up{ + transform: translateY(20em); + } - .line2 { - display: flex; - flex-direction: column; - align-items: center; - margin-right: 2rem; - transform: translateY(-50px); - flex-wrap: wrap; + .line-primary, .line-secondary { + width: 100%; + display: flex; + flex-direction: column; + } + + .animation-up-scroll { + animation: scroll-up-animation 15s linear infinite; + + @keyframes scroll-up-animation { + 0% { + transform: translateY(0%); + } + 100% { + transform: translateY(-100%); + } + } + } + .animation-down-scroll { + + animation: scroll-down-animation 15s linear infinite; + @keyframes scroll-down-animation { + 0% { + transform: translateY(0); + } + 100% { + transform: translateY(100%); + } + } } - .box { display: flex; flex-direction: column; @@ -179,7 +205,7 @@ const ViewsSectionWrapper = styled.div` `; const MeshmapVisualizerViews = () => { - const [imageRef, inView] = useInView({ threshold: 0.4 }); + const [imageRef, inView] = useInView({ threshold: 0.3 }); const [imageInView, setimageInView] = useState(false); if (inView && !imageInView) setimageInView(true); @@ -195,44 +221,50 @@ const MeshmapVisualizerViews = () => { alt="" /> */}