# Page Transitions - custom animation

**URL:** <https://forum.kirupa.com/t/page-transitions-custom-animation/308302>\
**Category:** flash\
**Created:** [April 20, 2010, 6:45pm UTC](https://forum.kirupa.com/t/page-transitions-custom-animation/308302 "2010-04-20T18:45:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny\_](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@danny\_](https://forum.kirupa.com/u/danny_)\
**Post date:** [April 20, 2010, 6:45pm UTC](https://forum.kirupa.com/t/page-transitions-custom-animation/308302/1 "2010-04-20T18:45:28Z")

</div>

Hi everyone,

This is a newbie question, but i can’t quite find a good explanation for it.

I am trying to figure out how to code transitions between pages. specifically, i want an animation to play when you arrive at a page and the same animation to play in reverse when you leave the page.

ie. when you click on ‘about’ a piece of paper crinkles out of a ball and when you click on the button for another section that same piece of paper crinkles back into a ball and the new piece uncrinkles.

if anyone has any ideas i’ll be happy to send the url to my staging site so you can get a better idea of what i’m talking about:)

my website is built in flash cs3 using as3. the buttons are coded using simple eventListeners jumping between keyframes on a single timeline using gotoandPlay actions.

any help or tutorial recommendation will be greatly, greatly appreciated.

thanks!
