You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The content of displaying the menu bar is the commonplace web content.
492
-
Usually, these menu bar is fixed always. But some content will want to fix menu bar when
493
-
scrolling certain position.
494
-
Here’s the example content for scroll-triggered based changing styles.
495
-
This example has a menu bar on the right of content, and this content has a large title content.
496
-
This position of navigation bar will be fixed after exceeding the certain scroll position.
497
-
<p>Usually, we can implement using to the scroll event. However, If we use the @trigger rule, we can implement this more simply.</p>
498
-
<figure>
499
-
<imgalt="Use case 2: Scroll based styling" src="img/usecase2.svg" width="600">
500
-
<figcaption> Use case 2: Scroll based styling.<br> The left figure is before scroll, menubar’s position is not fixed.<br> The right figure is after scroll, menubar’s position is fixed. </figcaption>
501
-
</figure>
502
-
<p>If we use animation-trigger style sheet, this example code will be as follow:</p>
There are many animation contents which used the 3rd vendor plugins. These content can detect scroll event, and this content has interactive animation.
0 commit comments