[英]How to reveal on scroll in Ionic v4?
I'm trying to make a reveal on scroll with Ionic, until now I was using ngx-scrollreveal ( https://github.com/tinesoft/ngx-scrollreveal ) which is working fine with my angular pages.我正在尝试使用 Ionic 进行滚动显示,直到现在我使用的是 ngx-scrollreveal ( https://github.com/tinesoft/ngx-scrollreveal ),它在我的角度页面上运行良好。
With the Ionic Grid system the reveal animations act weirdly, they are only trigger by changing the viewport size.使用 Ionic Grid 系统,显示动画的行为很奇怪,它们只能通过更改视口大小来触发。
<div [ngsReveal]="{reset: true}" >Outside ion-content</div>
<ion-content padding>
<div [ngsReveal]="{reset: true}" >Inside ion-content : Only display if the object is on view page load</div>
<ion-grid fixed>
<div [ngsReveal]="{reset: true}" >Inside ion-grid : Only display when page's size change</div>
</ion-grid>
</ion-content>
Also the reset option seems to not be functional.此外,重置选项似乎不起作用。 (The object should fade away when is out of the viewport.) (当对象在视口之外时应该逐渐消失。)
I am using the wrong material for the effect I want?我使用了错误的材料来达到我想要的效果? Or is it just a problem with my grid?还是只是我的网格有问题?
It seems to work smoothly using ng-in-viewport instead.使用 ng-in-viewport 似乎可以顺利工作。
https://github.com/rivafarabi/ionic-scroll-reveal https://github.com/rivafarabi/ionic-scroll-reveal
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.