Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Animation Technology in CSS3

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to use animation technology in CSS3". The editor shows you the operation process through actual cases. The operation method is simple and fast, and it is practical. I hope this article "how to use animation technology in CSS3" can help you solve the problem.

1. Transform-origin

The origin of the CSS deformation, which defaults to the center point of the object. Transform-origin accepts two parameters, which can be specific values such as percentage, em, px, or keywords such as left, right, center, top, middle, bottom, and so on.

For example:

Transform-origin: top right;-o-transform-origin: top right;-moz-transform-origin: top right;-webkit-transform-origin: top right

Transform-origin: 0 0 transition: 0 0 transition: 0 0: 0 0: 0 0

Transform-origin: 0100% Matsumi Muhammad origin: 0100% Matsumi MuzMuq Muhami origin: 0100% Matt Muhami origin: 0100% Matt Muhami Muhami origin: 0 100%

Transform-origin: 50% 100% Matsumi Muhami origin: 50% 100% Matsumoto Muhami origin: 50% 100% Matt Muhammad Muhammad Muhami origin: 50% 100%

II. Transition-- transition

1.transition-property: the name of the CSS attribute that defines the conversion animation. Can be none | all | list of CSS attributes.

For example:

Transition-property:background-color;-o-transition-property:background-color;-moz-transition-property:background-color;-webkit-transition-property:background-color

2.transition-duration: defines the length of time to convert the animation.

For example:

Transition-duration: 3s murmur: 3s: 3s: 3s: 3s

3.transition-delay: defines the delay time for the transition animation.

For example:

Transition-delay: 3s poster, words, delay: 3s, words, delay, words, delay: 3s

4.transition-timing-function: defines the effect of the converted animation.

The value can be:

Ease: relieving effect.

Ease-in: show the effect gradually.

Ease-out: fade effect.

Ease-in-out: fades away.

Linear: linear effect.

Cubic-bezier: special cubic Bezier curve effect. Cubic-bezier (0.3,0,0.5,1.0).

For example:

Transition-timing-function: linear;- o-transition-timing-function: linear;-moz-transition-timing-function: linear;-webkit-transition-timing-function: linear

III. Animation

1.animation-name: animation name.

2.animation-duration: animation time.

3.animation-timing-function: animation playback method.

4.animation-delay: the time when the animation starts to play.

5.animation-iteration-count: the number of times played. Infinite means unlimited times.

6.animation-direction: animation playback direction. Each cycle of the normal-- animation alternate-- forward an even number of times and an odd number of times backward.

For example:

Div {

-webkit-transform-style: preserve-3d

-webkit-animation-name: ani

-webkit-animation-duration: 10s

-webkit-animation-iteration-count: infinite

-webkit-animation-timing-function: linear

}

/ * call Animation * /

@-webkit-keyframes ani {

0% {

-webkit-transform: rotateX (0deg)

}

25% {

-webkit-transform: rotateX (180deg)

}

50% {

-webkit-transform: rotateX (360deg)

}

75% {

-webkit-transform: rotateY (180deg)

}

100% {

-webkit-transform: rotateY (360deg)

}

This is the end of the content about "how to use animation technology in CSS3". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report