Javascript Centering Active Element Inside Custom React Carousel Stack Overflow

Javascript Centering Active Element Inside Custom React Carousel Stack Overflow