Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oppacity animation doesn't work in jQuery and in CSS

I have a image which I'm trying to apply opacity to.

here's is the jQuery:

$(document).ready(function(){

    $('#red').animate({
        opacity: 10
    }, 1500);

});

Nothing happens. I have also tried setting the opacity on the image through CSS . doesn't work that either...

Here is the fiddle

like image 906
Nilzone- Avatar asked Nov 27 '25 06:11

Nilzone-


1 Answers

The opacity range goes from 0 to 1: http://jsfiddle.net/Nj2WA/2/

More info here

like image 124
Johan Avatar answered Nov 29 '25 01:11

Johan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!