Edge Animate is Adobe's latest visualization tool for making HTML5 animations. It can be simply understood as the HTML5 Flash Pro. In subsequent articles, I will introduce this new HTML5 animation artifact one by one. This article first describes how to embed HTML5 animations created by Edge Animate into Wordpress.
1. Download Adobe Edge Animate production tool
A
I. Grammatical structure of animate
Animate (Params,speed,callback)
Params: A mapping that contains style attributes and values, such as{key1:value1,key2:value2}
Speed: Speed parameter [optional]
Callback: Functions that are executed when the animation completes [optional]
Two, custom simple animation
Use a simple example to illustrate the effect of clicking a div across the page.
Believe how to encode a GIF file, a lot of friends will, and the difficulty is how to let the gif files in motion, that is, to create animated GIF.GIF file Encoding methodLet's briefly introduce the coding method.1. Call the Bitmapencoder.createasync static method to instantiate the encoder, to create a GIF encoder, you can call the method, specify the GUID that represents the GIF encoder, this GUID does not have to be deliberately remembered, because access to the Bitmapencoder.gifencoderid sta
Animate (params, [duration], [easing], [callback])
A function to create a custom animation.
The key to this function is to specify the animation form and the result style Property object. Each property in this object represents a style attribute that can be changed (such as "height", "top", or "opacity"). Note: All specified attributes must be in camel form, such as marginleft instead of Margin-left.
The animation ends when the value of each property
CSS3 and jquery can all implement ease chasing, but with browser compatibility, the jquery animate method is recommended.
First show you the implementation of the results are as follows:
Effect Demo Source Download
Referencing files: jquery-1.11.1.min.js
Html
Jquery
var $first =$ (' #first ');
var $second =$ (' #second ');
(function () {
move1 ();
Move2 ();
}) ()
function move1 () {
$first.
Weekend Watch Ziv's blog " Make slide Bar menu, how to deal with sliding effect, avoid animation cotton ", see Address: http://www.cnblogs.com/zivxiaowei/p/3462964.html . is through the Jqury animate method to write an interactive effect, of course, he felt that the animation has some cards, so he uses the method of delay processing, avoid animation card, method can be worth learning from. I use the hover method myself, then the animation time is set
The function used to create the custom animation.return value: JQuery animate (params, [duration], [easing], [callback])If you are using a string value such as "Hide," "Show," or "toggle," the default animated form is called for the property. Paramsoptions a group of packagesContains a collection of style attributes and their values as animated and final valuesParams object {}, note: All specified properties must be in camel form, for example with Mar
It turned out to be good. Why don't you go ahead and write it down.
This version is basically the same as jquery's animate.
I mean, the effect is basically the same. (efficiency has not been tested.) );
If a professional tester helps me with the test.
1: Function description
Compatible with mainstream browsers.
1: Support callback function;
2: Support level linkage drawing call;
3: Support delay animation queue delay;
4: Support stop stop animation;
5
A page with a button that goes back to the top, click on the page will automatically return to the top of the page, you can use the way of hyperlinks, but the instant return to the top of the effect is not very ideal, the better effect is to scroll up for about 0.5 seconds, which requires the animation effect.
I chose to use jquery's animate () method, the top effect is perfect, but another effect is not ideal.
I want the height of the top button to d
This example describes the use of the Animate () method in jquery. Share to everyone for your reference. The specific analysis is as follows:
This method is used to create custom animations and to specify the length and erase effects of animations. You can also trigger a callback function when the animation is complete.
Use of the Animate () method:
Mode one:
defines the animation termination style prop
addition to its exposed interface, other you do not need to care, direct call on the line.
2. jquery's animate function
animate()function to perform a custom animation based on CSS properties
Basic usage:
$ (' #id '). Animate (Css,time,callback);
CSS: The list of styles you need to implement finally
Time : Timing of transition
callback: callbac
This article reproduced: http://blog.csdn.net/aminfo/article/details/7847761The first step: the first piece of material, the following materials are placed in the Res/drawable directory:The second step: on the animation animation-list frame layout file, there are 2, one is to display the animation sequentially, one is the reverse display animation, the file is stored in the Res/drawable directorySequential display of animation files: Animation1.xmlXML version= "1.0" encoding= "Utf-8"?>The root t
jquery animations can have a lot of effect and support extended animations, where http://easings.net/zh-cn# has a very useful animation extension based on jquery, especially on some curves or parabolic lines where it is difficult to make ideal animations.The core idea of jquery animation is to divide the whole interval into n time period, and calculate the interval ratio value of the Moving (change) by the time animation relation function.This is a easings free drop animation curve, horizontal f
As you can see from the jquery API documentation, the jquery custom animation function. Animate (properties [, duration] [, easing] [, complete]) has four parameters:
Properties: a set of style attributes and their values that are included as animation properties and end values
Duration (optional): animation execution time, whose value can be one of three predetermined speeds ("slow", "normal", or "fast") or a millisecond value representing the leng
Yesterday, a netizen asked me animate () method can be used to manipulate all CSS properties? Yes, I told him it was OK. However, there is a need to pay attention to the need to be clear: when using animate (), you must use the Camel notation to write all the property names, for example, you must use Paddingleft instead of padding-left, use MarginRight instead Margin-right, wait.
Not all attributes in CSS
an animation by continuously playing a picture, while a tweened animation is achieved by adding a simple animation effect between two keyframes. There are 5 types of tweened animations supported by the Android app framework. Specifically implemented in the Android.view.animation class library. +alphaanimation: Transparency (Alpha) gradient effect, corresponding to +translateanimation: Displacement gradient, you need to specify the starting and end
(This article is reproduced from: http://www.cnblogs.com/royis/articles/2109254.html)
Animate (Params, options): A function used to create a custom animation.
The key to this function is to specify the animation form and result style attribute object. Each attribute in this object represents a changeable style attribute (such as "height", "TOP", or "opacity "). Note: All specified attributes must be in the form of camels. For example, marginleft must
Edge animate is a visual tool for Adobe's latest production of HTML5 animations, which can be easily understood as the HTML5 version of Flash Pro. In the following article, I will introduce the new HTML5 animation artifact.First, create Edge animation projectStart Edge Animate and create a new project.Set stage (stage) width to 640px and height to 1136px. Ctrl+s saved as demo.html. A standard edge
The function used to create the custom animation.return value: JQuery animate (params, [duration], [easing], [callback])If you are using a string value such as "Hide," "Show," or "toggle," the default animated form is called for the property. Paramsoptions a group of packagesContains a collection of style attributes and their values as animated and final valuesParams object {}, note: All specified properties must be in camel form, for example with Mar
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.