Range component

Someone could give me an example of how to attribute a function based on different ranges when it slides?
A good example would be how to maximize an minimize texts using this component
-begginer

waiting for a reply