I designed and coded this interactive elephant artpiece on processing.org using JavaScript. Once you click into the embedded artwork you will be able to press space to move the elephant's trunk and use the trackpad to move the elephant around the screen.
You can view it on github here.