-
Notifications
You must be signed in to change notification settings - Fork 286
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
how to hide arrows for single image ? #200
Comments
Hi. If you still consider that feature, I'm afraid that it's not possible within provided version unless you accept big cons of workaround mentioned below. I've tried to attach to import React, { useState, Component } from 'react';
const [isActive, setActive] = useState(true);
<AutoplaySlider
organicArrows={isActive}
onTransitionEnd={e => {
if (e.currentIndex === 1) {
setActive(false);
}
}}
> but slider hangs out as soon as You can achieve small progress(no arrows at given slide & working slider) by doing reverse thing, that is
const [isActive, setActive] = useState(false);
onTransitionEnd={e => {
if (e.currentIndex === 1) {
setActive(false);
} else {
setActive(true);
}
}
} but you will face 2 problems:
So with that package you can achieve requested behaviour but only once and with poor side effect unless you dive into slider code, debug what's going on with |
Hi I am getting difficulties hiding arrows for single image. Is it possible to hide arrow for single image with this library ?
The text was updated successfully, but these errors were encountered: