Skip to content

Conversation

@bitstarr
Copy link

Using this labelling option would make it easier to work with icon fonts and ditch images.

Usage:

  …
  'controlsNextLabel' : '→',
  'controlsPrevLabel' : '←',
  …
.fraction-slider .prev,
.fraction-slider .next {
  font-family: icon-font;
  opacity: .5;
}
.fraction-slider .prev:hover,
.fraction-slider .next:hover {
  opacity: 1;
}

Using a code like this provides a fallback if the icon font is broken or something.

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

Successfully merging this pull request may close these issues.

1 participant