transitionDuration
Section 전환 시 속도를 지정합니다.
- component :
<FullpageContainer />
- required :
false
- type :
number
- default:
700
예시
'use client';
import { useState } from 'react';
import { FullpageContainer, FullpageSection } from '@shinyongjun/react-fullpage';
import '@shinyongjun/react-fullpage/css';
export default function App() {
const [activeIndex, setActiveIndex] = useState<number>(0);
return (
<FullpageContainer
activeIndex={activeIndex}
setActiveIndex={setActiveIndex}
transitionDuration={1000}
>
<FullpageSection>
<div>Section 1</div>
</FullpageSection>
<FullpageSection>
<div>Section 2</div>
</FullpageSection>
<FullpageSection>
<div>Section 3</div>
</FullpageSection>
</FullpageContainer>
);
}