Is there a way to make element fade in or fade out using Raphael.js? My code is something like:
var elem = paper.circle(10, 10, 10)
elem.hide();
Is there an attribute to .hide() to make fade effect, something like:
var elem = paper.circle(10, 10, 10)
elem.hide({'duration':5000});
You can animate opacity
for fade effect
var elem = paper.circle(10, 10, 10);
elem.animate({ opacity : 0 }, 1000, function () { this.hide() });
To fadeIn,
elem.show().animate({ opacity : 1 }, 1000);
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