Views can contain layers, Views can contain other views, and layers can contain layers. But layers cannot contain views.
If you want to animate a WebView, your best bet would be to embed it in an NSView where you've called setWantsLayer:YES and then animating the WebView's layer.