I try to use the HTML5 Canvas tag, until now I managed to do what I wanted. But now I'm trying to hide in fade a Canvas element (context). The retunred error is context.fadeOut is not a function.
See my draft here: http://jsfiddle.net/t46Ze/4/
Thanks for your help.
EDIT > Here my initial wanted : http://jsfiddle.net/t46Ze/15/
EDIT > Here the Andrew proposition : http://jsfiddle.net/t46Ze/16/ (with comments)
You're trying to fade out the 2D context of the canvas, not the canvas element itself. Fade out the element itself instead.
Do $(canvas).fadeOut instead of context.fadeOut
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With