Skip to content

Instantly share code, notes, and snippets.

@dbismut
Last active April 9, 2018 08:07
Show Gist options
  • Save dbismut/cabfbc31fb8139216866662e3f56f2df to your computer and use it in GitHub Desktop.
Save dbismut/cabfbc31fb8139216866662e3f56f2df to your computer and use it in GitHub Desktop.
Part 2 - adding the .scroll-block class to the post node for the exiting transition
onExit = () => {
/* same code */
this.to = this.getPreviewStyleAndPosition();
const scrollTop = windowScroll.get('top');
this.post.classList.add('scroll-block');
this.postScroll.set('top', scrollTop);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment