Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Releases: TylerBarnes/gatsby-plugin-transition-link

Pass onClick handlers through

14 Mar 22:25
Compare
Choose a tag to compare

Thanks to @lsirivong , onClick handlers get passed through to AniLink and TransitionLink and are called.

Bug fixes

18 Dec 01:55
ad57af2
Compare
Choose a tag to compare
  • Properly reset scroll position when clicking a link with no transition #21
  • More accurately calculate when the transition is complete #22

Some small fixes + default fade length change

02 Dec 04:25
afcd9ca
Compare
Choose a tag to compare
  • don't pass all props through to gatsby-link, just pass activeStyle and className
  • only apply min height to the site wrapper when not in transition to fix some transition glitches for the swipe animation
  • prevent the fade transition from jumping the exiting page to the top of the screen
  • default fade transition default length is now 800ms instead of 400ms

AniLink fixes

24 Nov 21:51
051e0b9
Compare
Choose a tag to compare

Not all props were being passed through to gatsby link when using AniLink, this fixes that.
This also fixes some inconsistencies in the documentation and the "duration" prop in AniLink.

Fix gatsby build error from last release

23 Nov 00:53
898849e
Compare
Choose a tag to compare
Merge pull request #15 from TylerBarnes/prevent-scroll-jumping-on-save

check for session storage existance before trying to use it

Fix scroll jumping on save during development

22 Nov 06:37
d8ca0c5
Compare
Choose a tag to compare

Previously, saving your components or pages would cause the page to jump to the top, meaning you would have to scroll down to the component you were working on over and over. This fixes that.

This should also fix the issue where footers in layout components weren't pushed down by the contents of your page.

Improved saved scroll position jumping + small refactor

21 Nov 20:11
42c0746
Compare
Choose a tag to compare
Merge pull request #10 from TylerBarnes/layouts

v1.2.5

Fixed undefined layout variable error

17 Nov 21:19
Compare
Choose a tag to compare

This releases fixes WebpackError: ReferenceError: GATSBY_LAYOUT_COMPONENT_PATH is not defined

Remove GSAP from required dependencies + fix layout bug

15 Nov 04:14
5a25b76
Compare
Choose a tag to compare

Prior to this release, GSAP needed to be installed for TransitionLink to not throw errors.
Now, the AniLink component is moved to it's own file and will need to be imported as default from "gatsby-plugin-transition-link/AniLink".

It looks like an earlier release also broke layout functionality and that has been fixed with this release.
If you were getting the error

warning  in ../gatsby-plugin-transition-link/src/components/Layout.js

Critical dependency: the request of a dependency is an expression

v1.2.2 fixes this.

Small fix

12 Nov 03:47
37ca7fb
Compare
Choose a tag to compare
  • Not all page props were being passed to layouts
  • Pathname wasn't being passed to the onEnter function which is using it