向左滚动时,iOS上的CSS动画会闪烁

时间:2018-08-04 06:03:06

标签: ios css ionic-framework css-animations

当滚动容器移动时,我必须用JS移动h5。向左移动时,元素闪烁。向右移动时,我没有这种闪烁。

我有这个标记:

AtomicInteger subs = new AtomicInteger();
Observable<String> test = BehaviorSubject.createDefault("foo")
        .doOnSubscribe(x -> {
            if(subs.getAndIncrement() == 0) {
                // do something
            }
        })
        .doOnDispose(() -> {
            if(subs.decrementAndGet() == 0) {
                // do something
            }
        });

此CSS

<div *ngFor="let locations of dayselect; index as i" class="loca">
  <h5 class="s{{i + 1}}" [style.transform]="'translate3d(' + venuescroll + 'px,0,0)'">{{locations.name}}</h5>
</div>

插图 enter image description here

0 个答案:

没有答案