The present disclosure provides an accessory for a handheld device. The accessory includes a first base, a second base, a first flexible element and a second flexible element. The first flexible element and the second flexible element are respectively disposed at the first base. The first flexible element has a first track. The second flexible element has a second track. The second base has a fastener for engaging with the first track and the second track. The first flexible element is flexed based on sliding of the fastener along the first track. The second flexible element is flexed based on sliding of the fastener along the second track.