# Rotate square around y axis

**URL:** <https://forum.kirupa.com/t/rotate-square-around-y-axis/264103>\
**Category:** flash\
**Created:** [June 23, 2008, 7:27am UTC](https://forum.kirupa.com/t/rotate-square-around-y-axis/264103 "2008-06-23T07:27:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![levshin22](https://avatars.discourse-cdn.com/v4/letter/l/bcef8e/32.png) [@levshin22](https://forum.kirupa.com/u/levshin22)\
**Post date:** [June 23, 2008, 7:27am UTC](https://forum.kirupa.com/t/rotate-square-around-y-axis/264103/1 "2008-06-23T07:27:59Z")

</div>

I’ve attached a quicktime of what I would like.

basically I want to rotate a square around its own y axis.

Its part of my website I’m building. When the page loads a black  
square with my logo is there. Then when a user clicks on it,  
it spins to reveal contact info. The square goes from black to red  
and I would like a nice ease into the end of the spin.  
Then when the user clicks on the red it goes back to black and vice versa.

Whoa!!! I hope I’ve not bored you witless.

Any help will be much appreciated,
