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
I have a grid of images and I would like to have them fade in using react-lazyload-fadein but I can't change the preset Div from inline-block to the needed inline. Below does not work:
The text was updated successfully, but these errors were encountered:
Nedelstein
changed the title
Can't override inline-block positioning in FadIn component div
Can't override inline-block positioning in FadeIn component div
Jun 1, 2020
I have a grid of images and I would like to have them fade in using react-lazyload-fadein but I can't change the preset Div from inline-block to the needed inline. Below does not work:
<FadeIn height={100} style={{ display: "inline !important" }}> {(onload) => ( <Link to={projectNames[index]}> <img onLoad={onload} style={imgStyle} className="projectImg" src={IMG(projects[index])} alt="nope" onMouseEnter={() => { setTitle(projectTitle[index]); setSkills(projectSkills[index]); document.getElementById(projects[index]).style.opacity = "1"; }} onMouseLeave={() => { setTitle(null); setSkills(null); document.getElementById(projects[index]).style.opacity = "0"; }} ></img> <div id={projects[index]} className="projTitle"> {title} <div style={{ marginTop: "2%", fontSize: "0.8rem" }}> {skills} </div> </div> </Link> )} </FadeIn>
The text was updated successfully, but these errors were encountered: