You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the time being, this is working as shown below on the latest Next.js.
"use client";import{useEffect,useRef}from"react";importSimpleParallaxfrom"simple-parallax-js";importstylesfrom"./page.module.css";exportdefaultfunctionHome(){constrefImage=useRef(null);useEffect(()=>{if(!refImage.current){return;}newSimpleParallax(refImage.current,{});},[refImage]);return(<mainclassName={styles.main}><divclassName={styles.description}><p>
simpleParallax.js is a simple and tiny JavaScript library that adds
parallax effects on any images.
</p><imgsrc="/image.png"alt="simpleParallax.js"className={styles.image}ref={refImage}/></div></main>);}
No description provided.
The text was updated successfully, but these errors were encountered: