Skip to content

Instantly share code, notes, and snippets.

@dbismut
Last active April 9, 2018 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbismut/ed7775ef3665c7644eefdd2806edcb5e to your computer and use it in GitHub Desktop.
Save dbismut/ed7775ef3665c7644eefdd2806edcb5e to your computer and use it in GitHub Desktop.
Part 3 - Adding the .post-enter-started class
executeEnteringTransition = (node, done) => {
this.postStyler.set({ ...this.from, visibility: 'visible' });
node.classList.add('post-enter-started'); // add this line
/* same code */
complete: () => {
node.classList.remove('post-enter-started'); // add this line
done();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment