Sliders are a pretty good representation to show function composition. Move the red point which is the input to function f, giving the green point, as input for function g, going to the blue point as output. The composition g∘f is a new function that goes from the red input to the blue output.