How does jQuery .fadeTo() work?

Tags: javascript,jquery,css

Problem :

I'm curious how .fadeTo() fades an element? Does it use an inline style of opacity to do this?

And if it does not use css opacity, then how would you control css opacity using jQuery or javascript?

This question is referring to all of the following:


Solution :

From the jQuery source - CSS opacity.

fadeTo: function( speed, to, easing, callback ) {
    return this.filter(":hidden").css("opacity", 0).show().end()
                .animate({opacity: to}, speed, easing, callback);

    CSS Howto..

    how to set word break in table th or td, when column and table-layout auto using CSS

    css float: left clash/collision, how to avoid?

    How to use Knockout.js to change a CSS class on mouseover?

    How to force an empty page in a paged HTML document?

    How to create a CSS border surrounding an input box?

    How to slice an Image Border for use in CSS?

    How can I keep the hovered menu item open so I can edit it's style with firebug?

    How to generate css using google chrome inspector to further use them?

    Keeping content “fixed” under slideshow of different image sizes

    How to make rounded tabs with css? [closed]

    Draggable elements in div show up behind drop zone when div is scrollable, need them to show in front

    How to simulate nonstoparagraphing in HTML/CSS?

    CSS - how to apply styles to first elements in a static generated list

    How to align the wizard to the left and right sides?

    How to draw half-opened line in CSS? [closed]

    How to reduce the indentation between first and second line inside circle?

    how to create divs rowwise in css

    How to override parent containers width property in CSS [duplicate]

    How to apply texture to text with a shadow

    How to change padding using php in options framework

    How to lookup the applied font on JavaFX Label?

    How do I apply the browser height to a CSS class?

    How to use Open Sans font with cakePhp 3?

    How can I display social media icons in a horizontal line instead of vertical row

    How to set size of a checkbox in table vaadin

    How to style google cse

    How to add another line on overflow in a text input?

    How to auto fit input field after dynamically added spans?

    How to create a custom shape - css

    How to put more than one class in css not() selector?