Co-written and first recorded by Ray Stevens (1976).
Hit version by The Captain & Tennille (US #13/MOR #12/CAN #11/AUS #67 1977).
From the wiki: “”Can’t Stop Dancin” is a song written by John Pritchard Jr. and Ray Stevens. It was first recorded by Stevens in 1976 for his album Just for the Record.
“The following year, husband-and-wife singing-duo the Captain & Tennile covered ‘Can’t Stop Dancing’ for their third studio album, Come In from the Rain. Released as that albums first promotional single, it peaked at #13 on the Billboard Hot 100 in the U.S., and #11 on the Canadian RPM Top Single chart.”
Captain & Tennille, “Can’t Stop Dancing” (1977):