-
Notifications
You must be signed in to change notification settings - Fork 1
git-dongchao/animate-scroll-ext
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
原动画库地址:https://github.com/mpalpha/animate-scroll 对原动画库进行了扩展,扩展后修改或增加了以下几点: 1、原动画库,需要遍历所有dom对象,然后根据对象的"data-animate-scroll"属性来判断是否设置动画,个人认为效率不高,是否设置动画,应该根据当前jQuery实例中选中的元素来设置,这样更满足jQuery的思想。 2、原动画库,在元素每次被显示时,都会播放动画,而我只需要在元素第一次显示时播放动画。 3、原动画库,在元素没有播放动画之前,如果元素超出页面宽度,会出现滚动条,不美观,我修改为,没有播放动画之前是隐藏的,不显示滚动条。 4、增加了一个新的功能,使之能够控制一组对象按照不同的间隔时间顺序播放动画,实现类似"上一个元素动画播放结束后,下一个元素的动画才开始播放"的效果。
About
滚动动画
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published