@@ -7,10 +7,10 @@ import FramedTerminal from "../Animated-terminal/Framed-terminal";
77import { AnimatedStepsListWrapper } from "./AnimatedStepsList.style" ;
88
99// The breakpoints where the next step of each animation triggers
10- const breakpoints = [ 0 , 350 , 1400 , 2450 , 2680 ] ;
10+ const breakpoints = [ 0 , 300 , 800 , 1300 , 1700 ] ;
1111
1212// The number of pixels before the next breakpoint that the animation should complete
13- const animationBottomPadding = [ 0 , 620 , 575 , - 50 ] ;
13+ const animationBottomPadding = [ 0 , 180 , 180 , 50 ] ;
1414
1515const calculateCurrentFrame = ( terminalSteps , currentIndex , scrollPosition ) => {
1616 const percentage = Math . min (
@@ -37,7 +37,7 @@ const AnimatedStepsList = ({ terminalHeroState, steps }) => {
3737 const scrollPosition = useScrollPosition ( ) ;
3838 const [ indicatorIndex , setIndicatorIndex ] = useState ( 0 ) ;
3939 const activeTerminalStateIndex =
40- scrollPosition <= 350 ? 0 : indicatorIndex + 1 ;
40+ scrollPosition <= 300 ? 0 : indicatorIndex + 1 ;
4141 const terminalSteps = [ terminalHeroState ] . concat (
4242 steps . map ( ( step ) => step . terminal )
4343 ) ;
0 commit comments