1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

add offset to lazyload

This commit is contained in:
Matthias Kretschmann 2018-03-27 10:01:06 +02:00
parent a7376f23fd
commit 52943311e8
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -11,7 +11,7 @@ class Home extends Component {
<div className="projects"> <div className="projects">
{projects.map(project => ( {projects.map(project => (
<LazyLoad key={project.slug} height={700} once> <LazyLoad key={project.slug} height={700} offset={200} once>
<FadeIn> <FadeIn>
<article className="project" key={project.slug}> <article className="project" key={project.slug}>
<h1 className="project__title">{project.name}</h1> <h1 className="project__title">{project.name}</h1>