-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
336 metadata content animation #400
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
|
|
}); | ||
}; | ||
|
||
const observer = new IntersectionObserver(applyAnimation, { threshold: 0.3 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at the code I had an additional thought: if we overwrite the animation in a section don't we have to remove all those listeners?
}); | ||
}; | ||
|
||
const observer = new IntersectionObserver(applyAnimation, { threshold: 0.3 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomasznetcentric please have a look if all those listeners and observers are ok to use and the most efficient way to do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nc-andreashaller The listeners and observers are fine so far. We could do just some improvements in terms of readability and organization. But its okay.
}); | ||
}; | ||
|
||
const observer = new IntersectionObserver(applyAnimation, { threshold: 0.3 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nc-andreashaller The listeners and observers are fine so far. We could do just some improvements in terms of readability and organization. But its okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified as fixed in QA.
Animations appear to work fine now.
Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #336
Test URLs:
To test this add a column with the key "animated" both on metadata and section metadata.
Values can be UP, LEFT, RIGHT, DOWN and NONE
To add animation on a general level:
To add animation on a section level: