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

add circular border over forward and backward slider #787

Open
duser77 opened this issue Feb 4, 2024 · 3 comments
Open

add circular border over forward and backward slider #787

duser77 opened this issue Feb 4, 2024 · 3 comments

Comments

@duser77
Copy link

duser77 commented Feb 4, 2024

above explained
forward arr
forward

@duser77
Copy link
Author

duser77 commented Feb 4, 2024

and make it smaller

@hunxjunedo
Copy link
Contributor

you can render a custom nav using renderRightNav and renderLeftNav.

@dancielos
Copy link

dancielos commented Feb 9, 2024

Or you can also use additionalClass property to design your nav. For instance:

in the App.jsx:
<ImageGallery ... additionalClass={"extra-class"} />

in your css file:

.extra-class .image-gallery-left-nav {
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
}

.extra-class .image-gallery-left-nav .image-gallery-svg {
  stroke-width: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  width: 14px;
  color: #000;
}

The disadvantage of this approach is you can't change the icon svg itself, but it's doable.

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

3 participants