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

What are the parameters of css3 Bezier curve function

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "what are the parameters of css3 Bezier curve function". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what are the parameters of the css3 Bezier curve function"!

The css3 Bezier curve function cubic-bezier () has four parameters that specify the coordinates of the middle points of the curve that are separated from each other. The syntax is "cubic-bezier". The values of parameters x1, y1, x2, and y2 range from 0 to 1.

The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.

Css3 Bezier curve (cubic-bezier)

Cubic-bezier, also known as cubic Bezier, is mainly a function of generating velocity curves (Bezier curves) for animation. It is an important value in animation-timing-function and transition-timing-function.

Syntax:

Cubic-bezier (x1 ~ y1 ~ x2 ~ 2)

Let's look at the picture and say:

From the figure above, we can clearly know the value range of cubic-bezier:

P0: default value (0c0)

P1: value (x1jue y1)

P2: value (x2jiny2)

P3: default value (1Phone1)

In cubic-bezier, p0 and p3 are the default points, so we only need to define p1 and p2. At the same time, the values of x1, y1, x2, and y2 are in the range of [0Power1].

Note: when the value is out of range, the cubic-bezier will fail.

There are several commonly used fixed values in CSS3 animation.

Ease: cubic-bezier (.25, .1, .25,1)

Linear: cubic-bezier (0,0,1,1)

Ease-in:cubic-bezier (.42pm 0pm 1pm 1)

Ease-out:cubic-bezier (0pd0.58pr 1)

Ease-in-out:cubic-bezier (.42jue 0.58jue 1)

Ease: cubic-bezier (.25, .1, .25,1)

Linear: cubic-bezier (0,0,1,1)

Ease-in:cubic-bezier (.42pm 0pm 1pm 1)

Ease-out:cubic-bezier (0pd0.58pr 1)

Ease-in-out:cubic-bezier (.42jue 0.58jue 1)

At this point, I believe that everyone on the "css3 Bezier curve function what parameters" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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