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
Add Succession, Transition & enable Component build-in / build-out CSS animation #1559
base: master
Are you sure you want to change the base?
Conversation
85452cb
to
2be778d
Compare
CSSAnimationEndEventName: { | ||
get: function () { | ||
if (!this._CSSAnimationEndEventName) { | ||
if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) { |
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.
not safe use void 0 or typeof
6ddd929
to
dc27182
Compare
dc27182
to
e78d902
Compare
@rayshan Where are we about this PR ? |
This is fully working and we're ready to use my fork with it for Contour (pending other Montage bugs being fixed). However it's not mergable due to missing tests. |
Ok thanks. what issues ? |
All known issues are fixed. We're using it now in Contour without any issues. The missing feature is animating an entire subtree of components upon removal, instead of animating just the topmost component. Also missing tests. |
- Ensure selection always has content - Use swap instead of clear / add to prevent setting selection multiple times
Within a mopped app the JSON content is already parsed and the property `text` is undefined.
3e4d9fa
to
3adfcff
Compare
@marchant debug steps for
Let me know if I can offer further assistance. |
Component
is enhanced to allow animation for both stand-alone components & components inside a placeholder likeSlot
orSubstitution
.Succession
implements astack
to keep track of navigation. You canpush
/pop
/clear
the stack. You can also bind to thetop
/previous
/first
components of the stack, e.g. to a Navigation Bar. The stack only tracks Components for now. Next step is to enable the use of aTransition
object.See
succession.info
for usage. For live demo, serve/index.html
then selectSuccession
from drop-down.Video demo: https://www.youtube.com/watch?v=9F0SxMVXpgI
Usage & Design Docs: https://gist.github.com/rayshan/fd5ef874a3c648b81138
Known issues
When pushing onto then popping components off of the stack rapidly, sometimes components get stuck on the stack. It's likely the wayfixed_performDomContentChanges
removes children elements need improvement.Firefox isn't consistently hearing transition / animation end eventsfixedgetComputedStyle
property inwillDraw
breaks build-in transition