Comments (8)
页面刷新时在底部??然后往上滚动不显示吗???
from scroll-anim.
刷新时在任何位置可以显示,但是当我滚动到window.scrollY为0时再往下翻滚就会出现这个问题
from scroll-anim.
always 为 false 时,动画只会播放一次,,播放完后就不会再出现动画了,,,
http://react-component.github.io/scroll-anim/examples/simple.html, 只进入一次,没有问题啊。。。
from scroll-anim.
一般确实不会有问题,我是在componentDidMount中监听了滚动事件,可能OverPack也是通过同样的方法实现的,滑到顶部再下来页面内容都不见了
const className = window.scrollY > 0 ? 'menu-sticky' : 'menu-transparent'
window.addEventListener('scroll', this.onScrollHandler)
from scroll-anim.
来个重现吧,https://codesandbox.io/s/serene-water-c2bps
from scroll-anim.
https://codesandbox.io/s/musing-lake-24dz8
第二个OverPack的问题与我情况相似
from scroll-anim.
好的,,我这边看下。。
from scroll-anim.
v2.5.8
from scroll-anim.
Related Issues (20)
- 开发环境和生产环境行为 export 导出内容不一致。 HOT 1
- 页面已经有Link, 再打开有Link的Modal, modal里的Link标签就失效 HOT 13
- where is addScrollEvent? IE10 console error 对象不支持"addScrollEvent"属性或方法 HOT 4
- 引入OverPack和QueueAnim配合antd的dropdown组件在划出下拉菜单时也有动画,如何取消 HOT 4
- Link and OverPack同时使用会有scrollTo定位不一致情况 HOT 3
- OverPack animation doesn't render if the object is at the bottom of the page HOT 4
- Temporarily disable scroll animations? HOT 1
- ScrollOverPack可不可以手动设置一下触发的距离
- Dynamic playScale in timeline not working HOT 1
- Parallax: playScale lookup on scroll
- Parrallax behavior differ from child to child
- ios上滑动页面,速度过快滑动到底部,带有动画效果时,底部会强制往下回弹下?
- ScrollAnim.scrollScreen中的 location 参数已经被移除了吗? HOT 4
- Fire animation hiding on React Router change
- Reverse animation not working
- Doesnt support React-hooks
- 滚动不到指定位置 HOT 3
- 切换路由动画没显示
- OverPack 使用 always 类型提示报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scroll-anim.