Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't override inline-block positioning in FadeIn component div #5

Open
Nedelstein opened this issue Jun 1, 2020 · 2 comments
Open

Comments

@Nedelstein
Copy link

Nedelstein commented 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>

@Nedelstein 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
@arsamshokrian
Copy link

Any solution found? I'm facing the same issue and while I found a solution for LazyLoad, I couldn't apply the same solution to FadeIn.

@Nedelstein
Copy link
Author

unfortunately no. i ended up scrapping react-lazyload-fadein and going in a different direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants