Dynamic Clipping Demo
The clipTo() method can clip a layer in a dynamic fashion.
Below is a little demonstration you can play with.
Put some different values in the inputs and click the button.
top:
right:
bottom:
left:
speed: