Coder Social home page Coder Social logo

Comments (8)

jljsj33 avatar jljsj33 commented on May 29, 2024

页面刷新时在底部??然后往上滚动不显示吗???

from scroll-anim.

fybchristasker avatar fybchristasker commented on May 29, 2024

刷新时在任何位置可以显示,但是当我滚动到window.scrollY为0时再往下翻滚就会出现这个问题

from scroll-anim.

jljsj33 avatar jljsj33 commented on May 29, 2024

always 为 false 时,动画只会播放一次,,播放完后就不会再出现动画了,,,

http://react-component.github.io/scroll-anim/examples/simple.html, 只进入一次,没有问题啊。。。

from scroll-anim.

fybchristasker avatar fybchristasker commented on May 29, 2024

一般确实不会有问题,我是在componentDidMount中监听了滚动事件,可能OverPack也是通过同样的方法实现的,滑到顶部再下来页面内容都不见了
const className = window.scrollY > 0 ? 'menu-sticky' : 'menu-transparent'
window.addEventListener('scroll', this.onScrollHandler)

from scroll-anim.

jljsj33 avatar jljsj33 commented on May 29, 2024

来个重现吧,https://codesandbox.io/s/serene-water-c2bps

from scroll-anim.

fybchristasker avatar fybchristasker commented on May 29, 2024

https://codesandbox.io/s/musing-lake-24dz8
第二个OverPack的问题与我情况相似

from scroll-anim.

jljsj33 avatar jljsj33 commented on May 29, 2024

好的,,我这边看下。。

from scroll-anim.

jljsj33 avatar jljsj33 commented on May 29, 2024

v2.5.8

from scroll-anim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.