Created by: k99sharma
Changed the description of nextWhenVisible() method in carousel component part of documentation and also added to() method in it. Tried to solve Issue:- Confusion on the "nextWhenVisible()" method on Carousel Component #31788 (closed)
Fixes #31788 (closed)