Closed Seol827 closed 1 year ago
I wonder if I can use "moveTo" as a click event for Div outside the . If not, Are there some ways to apply "moveTo" script (for moving top)?
<div onClick={} /> //this is for click event <div> <ReactFullpage pluginWrapper={pluginWrapper} licenseKey={''} scrollingSpeed={1000} controlArrows={false} navigation={true} slidesNavigation={true} // scrollOverflow={true} scrollOverflow={false} render={({ state, fullpageApi }) => { return ( <ReactFullpage.Wrapper> <div className="section"> ... </ReactFullpage.Wrapper>
React / Next.js / Typescript fullPage.js => v4 extensions => v3 @fullpage/react-fullpage => v0.1.33
Try using the window object:
window.fullpage_api.moveTo(1)
@alvarotrigo Thanks so much!! it works!🤩
Description
I wonder if I can use "moveTo" as a click event for Div outside the.
If not, Are there some ways to apply "moveTo" script (for moving top)?
code
Versions
React / Next.js / Typescript fullPage.js => v4 extensions => v3 @fullpage/react-fullpage => v0.1.33