mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 10:25:00 +01:00
animation tweaks
This commit is contained in:
parent
9522d190cc
commit
3206c3b4ee
@ -7,7 +7,7 @@ export const FadeIn = props => (
|
|||||||
classNames="fadein"
|
classNames="fadein"
|
||||||
appear={true}
|
appear={true}
|
||||||
in={true}
|
in={true}
|
||||||
timeout={{ enter: 300, exit: 200, appear: 300 }}
|
timeout={{ enter: 200, exit: 200, appear: 200 }}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
@ -8,6 +8,7 @@ const ProjectImage = ({ sizes, alt }) => (
|
|||||||
className="project__image"
|
className="project__image"
|
||||||
outerWrapperClassName="project__image-wrap"
|
outerWrapperClassName="project__image-wrap"
|
||||||
backgroundColor="#6b7f88"
|
backgroundColor="#6b7f88"
|
||||||
|
fadeIn={false}
|
||||||
sizes={sizes}
|
sizes={sizes}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
/>
|
/>
|
||||||
|
@ -32,7 +32,7 @@ const TemplateWrapper = ({ data, location, children }) => {
|
|||||||
<TransitionGroup appear={true}>
|
<TransitionGroup appear={true}>
|
||||||
<FadeIn
|
<FadeIn
|
||||||
key={location.pathname}
|
key={location.pathname}
|
||||||
timeout={{ enter: 300, exit: 200, appear: 300 }}
|
timeout={{ enter: 200, exit: 150, appear: 200 }}
|
||||||
>
|
>
|
||||||
<TransitionHandler location={location}>
|
<TransitionHandler location={location}>
|
||||||
{children()}
|
{children()}
|
||||||
|
Loading…
Reference in New Issue
Block a user