Share your code.
A React component for determining when an element is within a given threshold of the viewport, horizontally.
npm i react-now-you-see-me
You'll also need React and ReactDOM peer dependencies:
npm i react react-dom.
import React from 'react'import InView from 'react-now-you-see-me'const Foo = props<SomeCarouselComponent>someSlides