-
Notifications
You must be signed in to change notification settings - Fork 46
docs: add route_transition_and_animation.md #357
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
docs: add route_transition_and_animation.md #357
Conversation
also add assets for it
@@ -0,0 +1,41 @@ | |||
# Route transition & animation |
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.
# Route transition & animation | |
# Route transition and animation |
@@ -0,0 +1,41 @@ | |||
# Route transition & animation | |||
|
|||
## Overall principle |
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.
## Overall principle | |
## Overview |
|
||
## Overall principle | ||
|
||
As you may have read in [intoduction](./introduction.md), all transitions in ilc are soft, which means that we can replace, add, remove applications on the page without reloading it, this is possible due to the use of one HTML template for all pages. |
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.
As you may have read in [intoduction](./introduction.md), all transitions in ilc are soft, which means that we can replace, add, remove applications on the page without reloading it, this is possible due to the use of one HTML template for all pages. | |
As you may have read in [intoduction](./introduction.md), all transitions in the ILC are soft. It means that you can add, remove, and replace applications on the page without reloading thanks to the use of one HTML template for all pages. This template comtains so-called [ilc-slots](./route_configuration_options.md#slot-configuration) that are used to render applications. (one application per slot at a time). |
|
||
As you may have read in [intoduction](./introduction.md), all transitions in ilc are soft, which means that we can replace, add, remove applications on the page without reloading it, this is possible due to the use of one HTML template for all pages. | ||
|
||
At this point, let's take a closer look. Our templates contain so called [ilc-slots](./route_configuration_options.md#slot-configuration) and our applications are rendered inside these slots. Only one application can be displayed in one slot at a time. |
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.
At this point, let's take a closer look. Our templates contain so called [ilc-slots](./route_configuration_options.md#slot-configuration) and our applications are rendered inside these slots. Only one application can be displayed in one slot at a time. |
At this point, let's take a closer look. Our templates contain so called [ilc-slots](./route_configuration_options.md#slot-configuration) and our applications are rendered inside these slots. Only one application can be displayed in one slot at a time. | ||
|
||
|
||
Now let's look at this with examples: |
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.
Now let's look at this with examples: | |
For example: |
|
||
 | ||
|
||
Now let's go to the `/hooks/` route, and the app inside the `body` slot will be replaced while the navigation bar will stay in place. |
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.
Now let's go to the `/hooks/` route, and the app inside the `body` slot will be replaced while the navigation bar will stay in place. | |
Navigate to the `/hooks/` route. | |
The application inside the `body` slot will be replaced, while the navigation bar will stay in place. |
|
||
 | ||
|
||
Now let's go to the `/noheader/` route, here we have only one application specified, which is rendered inside the `body` slot, the `navbar` slot is now empty. |
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.
Now let's go to the `/noheader/` route, here we have only one application specified, which is rendered inside the `body` slot, the `navbar` slot is now empty. | |
Navigate to the `/noheader/` route. | |
For this route, there is only one application specified that is rendered inside the `body` slot. The `navbar` slot is empty now. |
|
||
 | ||
|
||
In addition, I would like to remind you that routing within applications can be processed by native application tools and not processed in any way in ILC, and accordingly the content will always be located inside the same ILC slot. |
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.
In addition, I would like to remind you that routing within applications can be processed by native application tools and not processed in any way in ILC, and accordingly the content will always be located inside the same ILC slot. | |
!!! info "" | |
Routing within applications can be processed natively by application tools instead of the ILC. With this routing, the content will always be located inside the same ILC slot. |
No matter how hard we try to optimize the system to minimize the delay and provide users with a well-designed product, there will always be a point where the user has to wait. That is why ILC has a built-in ability to display a spinner when loading an application, despite this, we recommend using more progressive tools like `Skeleton loader` - placeholder for the information that is still loading. It mimic the structure and look of the entire view. But this is just our recommendation, the choice of what to use is up to you, and here you will find descriptions of the standard ILC tools. | ||
|
||
Global spinner: | ||
|
||
 | ||
|
||
In the settings there are 2 items responsible for this. | ||
1. `globalSpinner.enabled` - allows you to enable or disable the display of the spinner. | ||
2. `globalSpinner.customHTML` - allows you to add your custom spinner. |
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.
No matter how hard we try to optimize the system to minimize the delay and provide users with a well-designed product, there will always be a point where the user has to wait. That is why ILC has a built-in ability to display a spinner when loading an application, despite this, we recommend using more progressive tools like `Skeleton loader` - placeholder for the information that is still loading. It mimic the structure and look of the entire view. But this is just our recommendation, the choice of what to use is up to you, and here you will find descriptions of the standard ILC tools. | |
Global spinner: | |
 | |
In the settings there are 2 items responsible for this. | |
1. `globalSpinner.enabled` - allows you to enable or disable the display of the spinner. | |
2. `globalSpinner.customHTML` - allows you to add your custom spinner. | |
Regardless of system optimization or how well your product design is, there will always be a point where the user has to wait. For these cases, ILC has a built-in feature to display a spinner when loading an application. | |
### Global spinner | |
 | |
There are the following settings to configure spinner behavior: | |
1. `globalSpinner.enabled` - enable or disable the display of the spinner. | |
1. `globalSpinner.customHTML` - add your custom spinner. | |
!!! info "" | |
You can also use more progressive tools like `Skeleton loader` - a placeholder for the information that is still loading that mimics the look and structure of the entire view. |
mkdocs.yml
Outdated
@@ -40,6 +40,7 @@ nav: | |||
- Routing: | |||
- Route configuration: docs/routing/route_configuration_options.md | |||
- Match & cascade merge: docs/routing/route_match_patterns.md | |||
- Route transition & animation: docs/routing/route_transition_and_animation.md |
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.
- Route transition & animation: docs/routing/route_transition_and_animation.md | |
- Route transition and animation: docs/routing/route_transition_and_animation.md |
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.
One minor update left
In this example, the routing table looks as follows: | ||
 | ||
|
||
In our HTML template - 2 ilc-slots: |
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.
Still unresolved
Co-authored-by: Volodymyr Makukha <nightelfillidan@mail.ru>
No description provided.