Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

轮播图的flow效果图,只能显示三个li? #429

Closed
yyccQQu opened this issue Jan 19, 2018 · 5 comments
Closed

轮播图的flow效果图,只能显示三个li? #429

yyccQQu opened this issue Jan 19, 2018 · 5 comments

Comments

@yyccQQu
Copy link

yyccQQu commented Jan 19, 2018

我尝试了iSlider.js里面的【renderComplete】那里的li,有一个for循环,渲染的li标签,如
997行代码
for (var i = 0; i < 7; i++) {
var li = document.createElement('li');
outer.appendChild(li);
this.els.push(li);

        // prepare style animation
        this._animateFunc(li, this.axis, this.scale, i, 0);

但是改了也没多大用?求解!谢谢

@shinate
Copy link
Member

shinate commented Jan 19, 2018

轮播只基于3个li,这是islider的设计初衷。
这是高效的保证,也带了了一些局限,比如转轴,跳跃,轮盘的效果无法实现

@yyccQQu
Copy link
Author

yyccQQu commented Jan 19, 2018

zizi/我想要旋转木马的效果,只显示三张,其实局限性还是有的,我建议还是可以多显示几张。比如说让显示多少张成为用户的可选项,然后再在文档里说明一下,或者在源代码里面说明一下,显示多张会影响性能,让用户选择,我感觉这还是不错的。

@yyccQQu
Copy link
Author

yyccQQu commented Jan 19, 2018

我的意思是我在使用flow效果的时候,视图内最多显示3张图片?。

@shinate
Copy link
Member

shinate commented Jan 19, 2018

是的,最多3帧,旋转木马是没法实现的

@yyccQQu
Copy link
Author

yyccQQu commented Jan 19, 2018

知道了 3Q

@yyccQQu yyccQQu closed this as completed Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants