anchors/ hiding page content

Is it possible to create a one page site using upfront where clicking images will activate an accordion effect which shows / hides page content for sections of that one page site?

e.g. 3 images clicking image A will reveal segment A. Clicking image B will close other segment and open section B and the same for image C / Segment C.

I found these if it helps? but not sure how to apply?