Releases: YIZHUANG/react-multi-carousel
Fixed a typo in Readme and adjustment to the partialVisbile props.
Fixed flickering issues on safari
Revert the changes that was introduced in 1.3.12
In 1.3.12 there were changes introduced to pre-clone the carousel items, but it creates "white flashes" at the same time, so these changes are reverted in this version, it is stable now.
Better TypeScript usage instruction.
Added centerMode to show previous and next items partially
It is recommended to use centerMode and infinite mode together.
Added focusOnSelect prop.
Go to slide on click and make the slide a current slide.
Dot's transition is infinite mode has no delay now.
Previously there were delay when you are passing showDots={true}
and infinite={true}
.
This is because there was a type-checking mistake in the code as the following:
if(!index)
which is now changed to:
if(index !== undefined)
Because index can be 0, and it should be truthy.
The feature is stable now.
Added IE11 and IE10 support, and modify the dots mode naming.
In previously version if you are using the custom dots mode, you would have to do the following to know if a dot is active or not.
if(slideIndex === currentSlide)
Now you can just do
const CustomDot = ({ active }) => {
return <li className={active? 'active' : 'not-active'}><button>I am a dot</button></li>
}
1.2.4 - change naming of some apis.
Here are a list of the props that are changed:
afterChanged -> afterChange
disableSwipeOnMobile -> swipeable
forSSR -> ssr
disableDrag -> draggable
removeArrow -> arrows
shouldShowDots -> showDots
contentClassName -> sliderClass
itemClassName -> itemClass
containerClassName -> containerClass
dotListClassName -> dotListClass