-understand learning content. Here, you can get the knowledge you need in an easy-to-understand and convenient mode. The example jQuery fadeIn () demonstrates the jQuery fadeIn () method. JQuery fadeOut () demonstrates the jQuery
It is OK to be compatible with IE (Element.style.filter = ' alpha (opacity=value) ') and non ie (element.style.opacity=value).
Also, note that the value of ieopaciy is between 0~1, IE is 1-100.
Below, paste the code:
Copy Code code as
This example effect chart:
Code files:
Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, DIB, Stdctrls;TypeTForm1 = Class
Today's mission? Use jquery to complete page timed pop-up ads? Use jquery to complete alternating colors for tables? Use jquery to complete the check box for the full selection effect? Use jquery to accomplish provincial and municipal linkage effects? Use jquery to complete
This article provides examples of common special effects, such :. jQueryfadeIn () is used to fade in hidden elements. The jQueryfadeToggle () method can switch between fadeIn () and fadeOut () methods. For more information, see xiha 1. jQuery fadeIn () is used to fade in hidden elements.
Syntax:
$ (Selector). fadeIn (s
])
Duration: Specifies how long the transition animation runs (in milliseconds) and the default value is 400. This parameter can also be a string "fast" (=200) or "slow" (=600).
The function to execute after the element is displayed. This point within the function points to the current DOM element.
The FadeIn () function is used to display all matching elements with a fade-in animation effect.Attention:
Fade in animation pri
Basic Jquery tutorial
Author: Rebecca Murphey
Original link address http://jqfundamentals.com/
With contributions by James Padolsey, Paul Irish, and others. See the GitHub repository for a complete history of contributions.
Copyright 2011
Jquery effect Overview
Jquery makes it easy to add simple effects to the page. This effect can be achieved through built-in
.
$ (' #grow '). Animate ({height:500, width:500}, "Slow", function () {
Alert (' The element is done growing! ');
});
The built-in functions of jQuery make it easier to do more common animations. You can use the show () and hide () elements to display immediately or at a specific speed. You can also display and hide elements by using fadeIn () and fadeout (), or Slidedown () and Slideup (), depending on t
in jquery There are four ways to achieve the fading of elements, the four methods are:fadeIn (),fadeOut (),Fadetoggle (), and fadeTo (), This article gives you an example of how to use these four methods in jquery. With JQuery, you can implement the fade-out effect of elements.Click the show fade in/fade out panelInstanceJQuery
(){If ($ (this). attr ('href '). match ('evil') {// if it is identified as a harmful link
E. preventDefault (); // block open
$ (This). addClass ('evil '); // Add harmful class
}
});
There are two ways to automatically trigger an event. One is to directly use event functions, and the other is to use. trigger () or. triggerHandler ().
$ ('A'). click ();
$ ('A'). trigger ('click ');
9. Special Effects
JQuery allows objects to present certain s
JQuery provides the following methods to achieve the fade-in and fade-out effect: fadeIn () fadeOut () fadeToggle () fadeTo () fadeIn () method fadeIn () achieves the fade-in effect, the basic syntax is as follows: $ (selector ). fadeIn (speed, callback); the optional parame
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.