Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rayshan
Copy link
Contributor

@rayshan rayshan commented Mar 28, 2015

Component is enhanced to allow animation for both stand-alone components & components inside a placeholder like Slot or Substitution.

Succession implements a stack to keep track of navigation. You can push / pop / clear the stack. You can also bind to the top / 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 a Transition object.

See succession.info for usage. For live demo, serve /index.html then select Succession 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 way _performDomContentChanges removes children elements need improvement. fixed
  • Firefox isn't consistently hearing transition / animation end events fixed
  • Accessing a getComputedStyle property in willDraw breaks build-in transition

CSSAnimationEndEventName: {
get: function () {
if (!this._CSSAnimationEndEventName) {
if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) {
Copy link
Contributor

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

@thibaultzanini
Copy link
Contributor

@rayshan Where are we about this PR ?

@rayshan rayshan changed the title Add Succession, Transition & enable Component build-in / build-out CSS animation WIP - Add Succession, Transition & enable Component build-in / build-out CSS animation Jun 5, 2015
@rayshan
Copy link
Contributor Author

rayshan commented Jun 5, 2015

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.

@thibaultzanini
Copy link
Contributor

Ok thanks. what issues ?

@rayshan
Copy link
Contributor Author

rayshan commented Jun 12, 2015

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.

@rayshan
Copy link
Contributor Author

rayshan commented Aug 5, 2015

@marchant debug steps for getComputedStyle property in willDraw breaking build-in transition:

Let me know if I can offer further assistance.

@hthetiot hthetiot added this to the Future milestone Apr 12, 2017
@hthetiot hthetiot changed the title WIP - Add Succession, Transition & enable Component build-in / build-out CSS animation Add Succession, Transition & enable Component build-in / build-out CSS animation Jul 13, 2017
@hthetiot hthetiot modified the milestones: v17.2.x Component, Future Jul 13, 2017
@hthetiot hthetiot requested a review from jonfu86 July 13, 2017 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants