Scroll active ion card and content to top

i have create accordion with accordion component
i’m trying to scroll open accordion card and content to top of page but didn’t help me any thing
please help to get solution
image link for accordion example https://prnt.sc/n4zmlr