1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-30 05:31:44 +02:00

animation tweaks

This commit is contained in:
Matthias Kretschmann 2018-05-04 17:22:03 +02:00
parent 9522d190cc
commit 3206c3b4ee
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export const FadeIn = props => (
classNames="fadein"
appear={true}
in={true}
timeout={{ enter: 300, exit: 200, appear: 300 }}
timeout={{ enter: 200, exit: 200, appear: 200 }}
{...props}
/>
)

View File

@ -8,6 +8,7 @@ const ProjectImage = ({ sizes, alt }) => (
className="project__image"
outerWrapperClassName="project__image-wrap"
backgroundColor="#6b7f88"
fadeIn={false}
sizes={sizes}
alt={alt}
/>

View File

@ -32,7 +32,7 @@ const TemplateWrapper = ({ data, location, children }) => {
<TransitionGroup appear={true}>
<FadeIn
key={location.pathname}
timeout={{ enter: 300, exit: 200, appear: 300 }}
timeout={{ enter: 200, exit: 150, appear: 200 }}
>
<TransitionHandler location={location}>
{children()}