Everyone must have played the dice game, today I share with you how to use jquery to achieve the animation effect of the dice, through the jquery animate () Custom animation function and the CSS background picture to toggle the implementation of animation effect Implementa
The 10 web Front-ends are based on jQuery and css3 animation plug-ins and source code, and jquerycss3
1. jQuery horizontal accordion Image Display plug-in
Today, we will introduce a very cool jQuery plug-in, which is a horizontal accordion Image Display switching plug-in. Each image is initially horizontally stacked to
jquery provides a set of common animation effects on a Web page, these animations are standard, regular effects, but also gives us the ability to customize the animation.Show animationsWay One: $ ("div"). Show ();Explanation: No parameter means that the specified element is displayed directly. In fact, the bottom of this method is display: block; realized.Way two:$ (' div '). Show (3000);Explanation: By co
Implementation principle: When the dice roll, through the animate () function of jquery to change the boson displacement, the middle added the delay effect, and transform the dice background, the final animation to run to the number of randomly generated points to stop, and show the number of points thrown. In fact, the animation process to add a number of differ
: "+=10px"
}, 1500);
If the callback function is passed in, the function is called after the animation has finished executing
. Animate (Properties, Options)
This usage is more flexible, properties as in the previous usage, commonly used options have
Duration: Animation time
queue:function queues
Step: The callback function for each property adjustment
Complete: Complete the rollback functi
Document directory
JQuery stop () method
JQuery sliding method:You can create a slide effect on the element.SlideDown () slide down the element.SlideUp () slides up the element.SlideToggle () switches between the slideDown () and slideUp () methods.
$ (Selector). slide (speed, callback );The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast
jquery provides a set of common animation effects on a Web page, these animations are standard, regular effects, but also gives us the ability to customize the animation.Show animationsWay One: $ ("div"). Show ();Explanation: No parameter means that the specified element is displayed directly. In fact, the bottom of this method is display: block; realized.Way two:$ (' div '). Show (3000);Explanation: By co
jquery provides a set of common animation effects on a Web page, these animations are standard, regular effects, but also gives us the ability to customize the animation.Show animationsWay One: $ ("div"). Show ();Explanation: No parameter means that the specified element is displayed directly. In fact, the bottom of this method is implemented through internal encapsulation display: block; .It's a style tha
JQuery sliding method:You can create a slide effect on the element.SlideDown () slide down the element.SlideUp () slides up the element.SlideToggle () switches between the slideDown () and slideUp () methods.
$ (Selector). slide (speed, callback );The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or millisecond.The optional callback parameter is the name of the function executed after
"). Slidetoggle ("Slow"); });})script>Four, animation effectIn jquery, the Animate () method is provided to create a custom animationSyntax: $ (selector). Animate ({params},speed,callback);The params defines a CSS property that forms an animation for the required parameters. Speed and callback are optional parameters that specify the duration of the effect, with
jquery animation effects1. Display and concealment of elementsDisplay:none; HideDisplay:block; ShowA) show () display B) Hide () hidden c) Toggle () switch,Display is hidden, hidden then displayedCSS supports two methods of displaying and hiding elements, that is, using the visibility or display style, heControl elements Show and hide the same effect, but the results are different.Specify the following:The
In the process of Web page production and use all kinds of animation, form a variety of, flash,css,js,canvas, and so can be achieved, for its merits and effects can only say different.What is the animation effect, in fact, the gradient effect in the Web page is a very basic animation, the basis of the animation is the
Example of jQuery animation display and hiding effect (with demo source code download), jquerydemo
This article describes the jQuery animation display and hiding effects. We will share this with you for your reference. The details are as follows:
The running effect is as follows:
Click here to view the Online Demo.
Cl
In the past a long time, the various effects on the Web page also need to use flash in progress. But in recent years,We've seen very little of this, and most have used JavaScript animations to replace Flash. Over hereInstead of animation, the replacement is the Web Effects section. Web effects such as: Gradient menu, progressive display, picture carousel, etc.;and animations such as: storyline ads, MV and so on.A Show, HideThe method shown in
1. PrefaceWhen an animation method is called on a jquery object, if the object is performing an animated effect, the newly called animation method is added to the animation queue, and jquery executes each animation of the
1.jQuery Transverse accordion Picture Display pluginToday we are going to introduce a very cool jquery plugin, it is a horizontal accordion picture display switch plug-in, each picture is initially stacked horizontally together, click the picture can switch to the next, and in the picture when the movement of horizontal motion animation effects. In addition you c
Since its appearance, jQuery has caused a sensation in the web field. Now it has become one of the best solutions for Web Animation. JQuery provides excellent cross-browser support and is lightweight and easy to use. Now, jQuery has demonstrated its powerful functions in defining and Controlling Small Web animations.
The jquery hover event only triggers an animation once,
Recently, I encountered an animation problem as follows:
[Javascript]View plain copy
$ ("Div"). hover (
Function (){
$ (This). animate ({"margin-top": "100px"}, 1000 );
}, Function (){
$ (This). animate ({"margin-top": "200px"}, 1000 );
});
The Code is a simple mouse-sliding
:300}, (+) $ ("#aaron"). Animate ({ width:300}, +) $ ("#aaron"). Animate ({ opacity:0.6}, 2000)
Stop (): Only the first animation is stopped, the second third one continues
Stop (TRUE): Stops the first, second, and third animations
Stop (true ture): Stops the animation and jumps directly to the final state of the first animation
DOCTYP
10 cool jQuery and css3 animation plug-ins and source code, jquerycss3
1. jQuery cool plane clock special effect plug-in
This is a very creative jQuery clock plug-in. Unlike other clock plug-ins, It is a disc or digital, It is a flat clock, the pointer of date and hour, minute and second are moving timing on the plane.
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.