few pages, learning will be caught in the bottleneck.Not much nonsense to say, or directly into the theme, learning the animation effect of jquery.The animation effect of jquery is mainly showing, hiding, fading in, fading out, unfolding, folding, but also can define their own animation effect,
The working principle of jQueryAnimation is to change the CSS style of an element from one State to another. The following describes how to implement jQueryAnimation using an example, if you are interested, you can refer to the working principle of jQuery Animation by changing the CSS style of the element from one state to another. The CSS attribute value is gradually changed, so that you can create an
Animation effect functions in jquery
There are a lot of animation effects in jquery. I will share with you the animation functions in jquery.
List of jQuery effect functions:
Animate ()
The jquery effect function (Slideup (), FadeIn (), and so on) and the animation () function all receive another parameter that controls the speed of the animation process, which is the easing (easing), which determines the speed of the animation process at different times. For example, when you move an element across a
JQuery effect functions (slideUp (), fadeIn (), etc.) and animation () all receive another parameter used to control the speed of the animation process. This is easing ), it determines the speed of the animation process at different times. For example, when an element is moved over a page, it may slowly start to move a
Seamless and continuous image scrolling with jQuery animation Effects
This article introduces the code for seamless continuous scrolling of Images Using jQuery animation effects. The details are as follows:
As follows:
I. HTML code
1. div whose id is container is the package of the outermost layer, which is used to c
The example of this article is about the continuous triggering of jquery animation, and the solution of lag execution. Share to everyone for your reference. The specific analysis is as follows:
jquery in Slideup, Slidedown, animate and other animation, if the target element is driven by external events, when the mouse
Animate () as a method in jquery that can be used to create animation effects, the Animate () method in jquery makes the page more visually effective
In some pictures on the site we can see in the display of pictures, with the mouse gently slide on the picture can see the text of the picture information, in fact, using jquer
When creating animated effects on Web pages, sometimes you want to insert a picture through the background, and then control the position of the background display to achieve some animation effects, so that you do not use absolute positioning control left and top to achieve animation effect! But the animation function of jque
From the jquery API documentation, you can learn about the functions of jquery custom animations. Animate (properties [, duration] [, easing] [, complete]) has four parameters:Properties: A set of style properties and their values that are included as animated and final valuesDuration (optional): Animation execution time, whose value can be a string of one of thr
1.jquery Animation
1. The Base animation
Show () shows hide
() hides hidden Hide (600) disappearing within 600ms hide (' slow ')//slow fast normal
toggle () Toggle Show or hide to pass parameters
2. The gradient animation is mainly the transparency opacity Change
fadeIn () gradually appears the transparency opacity f
. element, options);return This; } }varinit = AQuery.fn.init =function(selector) {varMatch = rquickexpr.exec (selector);varelement = document.getElementById (match[1]) This. element = element;return This; }//almost underestimated this line of code //jquery looks good, you learn. //Direct AQuery.fn.init = Aquery.fn not better? //One more init variable is just to reduce the query, the idea of optimization everywhere. Init.prototype = Aquer
. Animate (Params,[speed],[easing],[fn])params,[speed],[easing],[fn]options,number/string,string,functionv1.0Params: A set of style properties and their values that contain the animated and final valuesSpeed: A string of three predetermined speeds ("slow", "normal", or "fast") or a millisecond value that represents the duration of the animation (for example: 1000)Easing: The name of the erase effect to use (requires plug-in support). The default
1.jQuery super cool flat clock effect pluginThis is a very creative jquery clock plug-in, it is not like other clock plug-in is a disk or a number, it is a flat clock, date and time and seconds of the hands are on the plane to move the timing, although this jquery plane clock plugin can not be widely used, but the idea is absolutely certain.Online DemoSOURCE down
Built-in animation functions show () and hide ()
Call the show () function to set the display attribute of the element to none and hide the element.
Call the hide () function to set the display style of the element to the original value and re-display the element.
Tip:When this method is used, the width, height, and transparency of the element change simultaneously. You can pass the parameters "fast", "normal", "slow" to this method, or enter a numbe
Slider Revolution Plug-in is a very powerful plug-in, we can use it to produce a variety of effects and also support mobile devices, mobile phone to support the touch, keyboard paging, and its built-in slide, video playback timer and so on, specifically we look.
This is a very powerful content switching plugin, it is based on jquery, it is fully responsive, support mobile devices, support mobile phone touch, keyboard page, it has built-in slide, vide
Recently in the CSS animation, encountered the need to use a script to replay the animation. For example:
CSS Animation code
Copy Code code as follows:
. seed_txt_out. seed_txt H2 {
ANIMATION-NAME:SEED-H2;
Animation-duration:2s;
Hide method of hidden elements in jqueryTo make the elements on the page invisible, you can generally set the display of the CSS to the None property. But through the direct modification of CSS is static layout, if the code is executed, usually through the JS control element of the Style property, here jquery provides a quick way. Hide () to achieve this effect$elem. Hide ()Provide parameters:. Hide (Options)When you provide a parameter to the Hide me
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.