This article mainly talks about the transition properties of CSS3.Transition properties are designed to be very easy to understand, the attribute is transition, there are four sub-attributes:
represents a property that needs to be transitioned "must" (essentially, transition adds a listener to the attribute o
CSS3 transition-timing-function, css3CSS3 transition-timing-function attribute
Definition and usage
The transition-timing-function attribute specifies the speed curve of the transition effect.
This attribute allows the transition effect to change its speed over time. (The
First, let's take a look at the compatibility of various browsers.
IE
Firefox
Safari
Chrome
Opera
CSS 2D Transform
No
3.5
3.2
2.0
10.5
CSS 3D Transform
No
No
4. * (MAC)
No
No
Transition
No
3.7
3.2
2.0
10.5
Animation
No
No
4.0
2.0
No
Transform
This is relatively simple. The two-di
I. Description 1.1 Definition and usage
The Transition property is a shorthand property for setting four transition properties:
Transition-property: Specifies the name of the CSS property that sets the transition effect.
Transition-duration: Specifies
{ transform: translate (0px,-5px); transition: transform 1s; }Effect:The mouse moves to the square area, the small square will move upward 5px, has the transition effect, after leaving the small square, immediately returns to the position, does not have the transition effect;Another way to do this:. De:first-child {
VS2010 (32-bit Win7 system), compile with error: "VS2010 LNK1123: Failed during transition to COFF: invalid or corrupt file". Solutions found on the Web:Method One: Go directly to the steps: Project →** properties → configuration properties → inventory tools → input/output → embed list, change this option from Yes to No.Shortcomings, each new project to be re-modified, too troublesome!Method Two: Replace the Cvtres.exe with the new version.Step: Add C
, different versions into the animation of different ways, I used the 8.0.1 version of the PS
Copy a Frame
Click on the two "chain icon" to remove it
Open all eyes except the selection layer (easy to observe), move the two masks to the right until the background layer is completely displayed
Back to the first frame, open the eyes before all layers except the selection layer
Last selected two frame animation for "
Let's take a look at the implementation of a similar effect chart:
Click on the image screen in the bottom right corner of the view comments will be flipped to the comment interface, the comment interface click the return button in the upper left corner will flip back to the picture interface, the real implementation of the method, and the traditional navigation bar transition in fact only a line of code differences, let us look at the overall
Fir
In fact, the focus of this example is not how to use the mask to complete a set of pictures of the transition, such a lot of examples ....
This example focuses on the application of the----"alignment panel".
A few days ago, I met a flash friend in the Flash zone. Q: How to quickly form an inter-graph matrix by copying---paste operation. Then apply the alignment panel in Flash. I don't know what this friend is doing. But gave me a thought ... Oh, look
CSS3 New Properties
Transform (variant) translate (PAN) (x,y) scale (zoom) (x,y) rotate (rotate) (x,y) skew (distort) (x,y)
Transform-origin (position of the center point of the deformation): x y;
Transtion (excessive): CSS attribute time transition style delay time property duration timing-function delay
The translation uses a pixel scale with a multiple
Translate scale
Transform: The first argument is relative to the X axis and the second argument i
There are two ways to implement animations in CSS3, transition and [email protected].The mechanism of action is different: transition defines some CSS properties on the elements that might be animated , and then animates them once the CSS changes; animation is defined on the element that will be animated immediately . Once the animation is defined.For example, when the mouse hovers, an element is changed fr
sets the pivot in the element, but it is also different from the parent element setting. Because the parent element is the whole as a perspective, and the element itself as a perspective, it causes the difference.Specific test to see perspective distance img {Transform:perspective (1000px) Rotatey (45deg);}Introduction to TransitionsTransitions typically trigger smooth transitions through a few simple CSS actions, such as: hover,: Focus,: Active,: checked and so on. CSS3 provides the
Before CSS3, animations on a Web page were implemented by JavaScript, and in this era you might see such snippets of code:
SetTimeout (Funcntion () {document.getElementById ("Test"). Style.opacity + 0.1;}, 300)The above code fragment implements the transparency gradient for the content described by this ID.
This is more complex to write, and the maintainability is poor. In addition, the performance on the mobile side is also very urgent.
CSS3 Times
The Stone Age has finally passed, the dawn
Talk about transition in CSS3.The transition of CSS3 in the standard is described as follows:CSS's transition allows the CSS's property values to smoothly transition within a certain time interval. This effect can be triggered by clicking on the mouse, getting focus, being clicked or any changes to the element, and smo
Activity Transitions AnimationThe transition animations for activity are implemented by overridependingtransition (int enteranim, int exitanim).This method is added by API level 5.This method startActivity(Intent) finish() is called after or, specifying the next transition animation.The first parameter of the method: Enteranim, is the resource ID of the new activity entering the animation;The second paramet
As shown in demo (if not displayed, check the source address http://jsfiddle.net/ihardcoder/HNduT/2/), the basic effect is that after clicking the "translate" button, the transparency of the blue area changes to 0, and then hide display: none; after clicking the reset button, the display: block in the blue area is displayed, and the transparency is gradually restored to 1. The Code is as follows:
1 var btn1 = $("#testbtn1"); 2 var btn2 = $("#testbtn2"); 3 var container = $("#container"); 4 5 b
Date: 2013-7-31 Source: gbin1.com
Css3 and jquery fundamentally change web page design and program development. With css3 and jquery, designers and developers can createThe amazing effect also allows you to complete tasks quickly. The greatest convenience of css3 and jquery is that there are a large number of demonstration tutorials on different elements on the Internet, which makes it easier to learn new techniques and create some great content. There are many tutorials on page
Original address: http://android.xsoftlab.net/training/transitions/index.htmlIntroductionThe UI that the activity renders is often changed by the user's input or other events. For example, an activity with an input box will hide the input box after the user enters the keyword to be searched, and will show the results after the search in the input box.In order to be able to present a consistent visual effect in this case, you can use animations in different view display and hide processes. These
CSS3 Transition effect (CSS3 transition)
One
A CSS Transition (transition) is a motion tween mechanism that defines the element's smooth transition or change within a certain time interval by defining the state of the elements from the state of the starting point and the en
Css3 animation (transition) attribute discussion, css3transition
CSS 3 animation effects are often used in webapp reference development. Next we will discuss the use of this attribute.Where can I define an animation effect?CSS 3 animations are usually defined by mouse events or state events. We can usually define them by using pseudo classes in CSS and mouse events in js. Js events can also be used, such as click, focus, mousemove, mouseover, and mous
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.