Skip to content

GiuMagnani/gatsby-using-page-transitions

 
 

Repository files navigation

gatsby-using-page-transitions

Gatsby v2 example site using page transitions

  • This example uses react-pose for a default page transition as well as more complex individual animations on specific pages or components
  • The Layout component is manually wrapped around pages via wrapPageElement in gatsby-browser.js. Alternatively gatsby-plugin-layout could be used to achieve a similar result.
  • The scroll position is manually set in gatsby-browser.js in order to delay scrolling to the top of the page until after the default page transition

Quirks

  • Setting a margin-top on the first element seems to make the page jump slightly during the page transition. More investigation is needed to understand why.

About

Gatsby v2 example site using page transitions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.0%
  • CSS 35.0%