# Creating OS X Dock-type animation using shape

**URL:** <https://forum.kirupa.com/t/creating-os-x-dock-type-animation-using-shape/246122>\
**Category:** flash\
**Created:** [December 7, 2007, 8:15am UTC](https://forum.kirupa.com/t/creating-os-x-dock-type-animation-using-shape/246122 "2007-12-07T08:15:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MDiddy](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@MDiddy](https://forum.kirupa.com/u/MDiddy)\
**Post date:** [December 7, 2007, 8:15am UTC](https://forum.kirupa.com/t/creating-os-x-dock-type-animation-using-shape/246122/1 "2007-12-07T08:15:51Z")

</div>

I’m looking to create an effect similar to how the dock grows in OS X when a user rolls over a particular area of a gradient. Basically, I’d like to draw a gradient on the bottom of the stage, then depending on where the user moves the mouse, the top path of the gradient bows out a bit to follow the mouse’s x location.

Has anyone seen any sample code to create this type of effect or done anything similar? If not, can anyone help me get started?

Thanks!
