treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Opacity in Safari

  • Hi everyone,
    I am trying to get the "fadeTo" function to work in Safari, but I cannot get it to work. it works in Firefox, just not safari.
    does anyone know of a way to do this? below is the code i've used.

    $(document).ready(function() {

    $(\"#nav ul li a\").hover(
    function () {
    $(this).stop().fadeTo(\"slow\", 1.0);
    },
    function () {
    $(this).stop().fadeTo(\"slow\", 0.5);
    }
    );

    });
  • I think you have the order of the parameters flipflopped.