I found an article that could help you http://www.adobe.com/devnet/digitalpublishingsuite/articles/enhancing-your-dps-folios-with -edge-animations.html
Please go through it and let us know if you need further help.
Please change the publish settings of your composition. ( Enable File->Publish Settings->Animate Deployment package, specify path and name for the published output and then publish ). Navigate to the specified publish output path and (./publish/oam) you will find .oam file.This .oam will have your animation which can be used in InDEsign/DPS workflow.