cubic-bezier_帶CSS中的示例的cube-bezier()函數

cubic-bezier

Introduction:

介紹:

How many times have we come across the word function? Well, it would not be wrong to say a lot. The fact that functions are used in web development while developing a website or web page is very important. There are numerous functions out there that can help you reduce the line of your codes and make your work easy and fast. Besides, if you wish to be a good coder then you must learn as many functions as you can. By learning those functions you will be able to write very efficient codes and that will also showcase your knowledge regarding web development.

我們遇到過幾次單詞功能? 好吧,說很多話是沒有錯的。 在開發網站或網頁時在Web開發中使用功能這一事實非常重要。 有許多功能可以幫助您減少代碼行,并使您的工作輕松快捷。 此外,如果您想成為一名優秀的編碼人員,那么您必須學習盡可能多的功能。 通過學習這些功能,您將能夠編寫非常有效的代碼,并且還將展示您對Web開發的知識。

This discussion brings us to a question: why are we talking so much about functions? Well, the answer is very clear as in this article we are going to learn about one very specific function known as cubic-bezier() function in CSS. Most of you might already know what this function is and what its behavior is and how it is helpful. But if you are not aware of this function even a bit, then this article is just for you. So, keep on reading and everything will be made clear to you about the cubic-bezier() function in CSS.

討論給我們帶來了一個問題:為什么我們這么多談論功能? 很好,答案很明確,因為在本文中,我們將學習一個非常特定的函數,稱為CSS中的cube-bezier()函數 。 你們中的大多數人可能已經知道此功能是什么,其行為是什么以及它如何有所幫助。 但是,如果您甚至根本不了解此功能,那么本文僅適合您。 因此,請繼續閱讀,有關CSS中的cube-bezier()函數的一切都將向您清楚。

Description:

描述:

First and foremost, let us start with the definition of the cubic-bezier function and get a gist about it.

首先,讓我們從三次貝塞爾函數的定義開始,并深入了解它。

The cubic-bezier() function is used to denote a certain type of curve and that curve is known as the cubic-bezier curve. To plot this curve, it is mainly denoted by 4 points that could be P0, P1, P2 & P3. Here, the points P0 and P3 are representing the start and the end of the curve and these points will always be fixed.

cube-bezier()函數用于表示某種類型的曲線,該曲線稱為三次貝塞爾曲線。 為了繪制該曲線,主要由4個點表示,可以是P0P1P2P3 。 在這里,點P0P3代表曲線的起點和終點,這些點將始終是固定的。

Implementation:

實現方式:

Now, that we have understood the definition of this function, let us explore further: this function is majorly used with two properties and those properties are animation-timing-function property and transition-timing-function property.

現在,我們已經了解了此功能的定義,讓我們進一步探討:該功能主要用于兩個屬性,而這些屬性是“ 動畫定時功能”屬性和“ 過渡定時功能”屬性。

With the help of the syntax, you will get a clear idea about the implementation of this function.

借助語法,您將對該功能的實現有一個清晰的了解。

Syntax:

句法:

    element{
transition : cubic-bezier(x1,y1,x2,y2);
}

Example:

例:

<!DOCTYPE html>
<html>
<head>
<style>
.cubic-bezier {
transition: width 1.5s cubic-bezier(0.74, 0.15, 0.43, 1.5);
background: pink;
width: 180px;
height: 150px;
margin: 100px;
text-align: center;
}
.cubic-bezier:hover {
width: 70%;
}
</style>
</head>
<body>
<div class="cubic-bezier">cubic-bezier() function</div>
</body>
</html>

Output

輸出量

CSS | cubic-bezier() function

Hover over the div in the above example to see the effect of this function.

將鼠標懸停在上面的示例中的div上可以查看此功能的效果。

Conclusion:

結論:

This was all about the cubic-bezier() function in CSS. Make sure that you use this function wisely as this function can prove to be a very good tool for styling. So, go ahead and have fun with the new learned function. Make sure that you use the above-mentioned properties while using this function on your website or web page.

這一切都與CSS中的cube-bezier()函數有關 。 確保明智地使用此功能,因為此功能可以證明是樣式設計的非常好工具。 因此,繼續學習新功能吧。 在網站或網頁上使用此功能時,請確保使用上述屬性。

翻譯自: https://www.includehelp.com/code-snippets/cubic-bezier-function-with-example-in-css.aspx

cubic-bezier

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/541817.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/541817.shtml
英文地址,請注明出處:http://en.pswp.cn/news/541817.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

php時間調用最簡單的,PHP調用時間通過引用不可避免?

給定以下接口:interface ISoapInterface {public static function registerSoapTypes( &$wsdl );public static function registerSoapOperations( &$server );}以及以下代碼:$soapProvider array( "FilePool", "UserList" );foreach( $soapProvi…

上手Caffe(一)

author&#xff1a;oneBite 本文記錄編譯使用caffe for windows 使用環境 VS2013 ultimate,win7 sp1,caffe-windows源碼&#xff08;從github上下載caffe的windows分支&#xff0c;下載解壓之后&#xff0c;不要改變原有的目錄結構,因為solution rebuild時會使用文件的相對路徑…

使用JavaScript的圖像識別游戲

Today we are going to develop a fully functional image recognition game using JavaScript. JavaScript is the best fit choice since it is a web-based game. The game is totally based on event handling and event objects. 今天&#xff0c;我們將使用JavaScript開發…

php 判斷 in,tinkphp常用判斷條件in、notin、between、AND、OR

越來越多的人使用thinkphp框架開發應用&#xff0c;容易上手開發周期短&#xff0c;接下來吾愛編程為大家分享一下tinkphp常用判斷條件in、notin、between、AND、OR&#xff0c;有需要的小伙伴可以參考一下&#xff1a;in&#xff1a;{in name"Think.get.level" valu…

關于設置不同linux主機之間ssh免密登錄簡易方法

2019獨角獸企業重金招聘Python工程師標準>>> 在linux日常中&#xff0c;經常會有ssh鏈接其他主機服務器的action,也學習過大家日常用配置ssh免密登錄的方法。 小編今天在這里給大家介紹一種比較簡單的配置linux主機ssh免密登錄的方法。 兩臺主機的IP地址&#xff1a…

c語言指針++_C ++此指針| 查找輸出程序| 套裝1

c語言指針Program 1: 程序1&#xff1a; #include <iostream>using namespace std;int main(){int A 10;this* ptr;ptr &A;*ptr 0;cout << *ptr << endl;return 0;}Output: 輸出&#xff1a; main.cpp: In function ‘int main()’:main.cpp:7:5: e…

java自定義線程池池,線程池使用及自定義線程池

一 案例引申編寫代碼同時只允許五個線程并發訪問(以下文的函數為例子)private static void method() {System.out.println("ThreadName" Thread.currentThread().getName() "進來了");Thread.sleep(2000);System.out.println("ThreadName" Th…

long類型20位示例_Java Long類reverseBytes()方法與示例

long類型20位示例長類reverseBytes()方法 (Long class reverseBytes() method) reverseBytes() method is available in java.lang package. reverseBytes()方法在java.lang包中可用。 reverseBytes() method is used to returns the value generated by reversing the order o…

impala和mysql語法,impala CREATE TABLE語句

CREATE TABLE語句用于在Impala中的所需數據庫中創建新表。 創建基本表涉及命名表并定義其列和每列的數據類型。語法以下是CREATE TABLE語句的語法。 這里&#xff0c;IF NOT EXISTS是一個可選的子句。 如果使用此子句&#xff0c;則只有在指定數據庫中沒有具有相同名稱的現有表…

Guava翻譯系列之EventBus

EventBus 類解析 當我們開發軟件時&#xff0c;各個對象之間的數據共享和合作是必須的。 但是這里比較難做的是 怎樣保證消息之間的傳輸高效并且減少各個模塊之間的耦合。 當組件的職責不清楚時&#xff0c;一個組件還要承擔另一個組件的職責&#xff0c;這樣的系統我們就認為是…

Java PipedOutputStream close()方法與示例

PipedOutputStream類close()方法 (PipedOutputStream Class close() method) close() method is available in java.io package. close()方法在java.io包中可用。 close() method is used to close this PipedOutputStream and free all system resources linked with this str…

Java二維數組谷電,java二維數組遍歷的2種代碼

二維數組遍歷&#xff1a;思想&#xff1a;1.先將二維數組中所有的元素拿到2.再將二維數組中每個元素進行遍歷&#xff0c;相當于就是在遍歷一個一維數組第一種方法&#xff1a;雙重for循環//遍歷二維數組public class Traverse_a_two_dimensional_array {public static void m…

【轉】MyEclipse快捷鍵大全

常用快捷鍵 -------------------------------------MyEclipse 快捷鍵1(CTRL)-------------------------------------Ctrl1 快速修復CtrlD: 刪除當前行 CtrlQ 定位到最后編輯的地方 CtrlL 定位在某行 CtrlO 快速顯示 OutLine CtrlT 快速顯示當前類的繼承結構 CtrlW 關閉當…

Java整數類的compareTo()方法和示例

整數類compareTo()方法 (Integer class compareTo() method) compareTo() method is available in java.lang package. compareTo()方法在java.lang包中可用。 compareTo() method is used to check equality or inequality for this Integer object against the given Integer…

MATLAB元胞自動機報告,元胞自動機概述與MATLAB實現

什么是元胞自動機&#xff1f;元胞自動機(cellular automata&#xff0c;CA) 是一種時間、空間、狀態都離散&#xff0c;空間相互作用和時間因果關系為局部的網格動力學模型&#xff0c;具有模擬復雜系統時空演化過程的能力。它能構建隨時間推移發生狀態轉移的系統&#xff0c;…

python(33)多進程和多線程的區別

多線程可以共享全局變量&#xff0c;多進程不能。多線程中&#xff0c;所有子線程的進程號相同&#xff1b;多進程中&#xff0c;不同的子進程進程號不同。 #!/usr/bin/python # -*- coding:utf-8 -*- import os import threading import multiprocessing count_thread 0 coun…

Java FilterInputStream reset()方法與示例

FilterInputStream類的reset()方法 (FilterInputStream Class reset() method) reset() method is available in java.io package. reset()方法在java.io包中可用。 reset() method is used to reset this FilterInputStream to the position set by the most recent call of m…

不同php文件,php-不同文件夾的不同登錄(會話)

我有一個Web服務,需要用戶登錄并創建標準$_SESSION [‘XXX’]個用戶變量.我想為應用程序創建一個“演示”,因此為它創建了另一個文件夾.相同的代碼在那里,除了數據庫以外的所有東西.問題是,當用戶登錄這兩個帳戶之一時,它可以訪問兩個帳戶.因此,如果他登錄了演示應用程序,它將使…

Java Hashtable containsValue()方法與示例

哈希表類containsValue()方法 (Hashtable Class containsValue() method) containsValue() method is available in java.util package. containsValue()方法在java.util包中可用。 containsValue() method is used to check whether this table Hashtable associated one or m…

php session redis db,php session redis 配置

具體環境&#xff1a;一臺apachephp的服務器(yum安裝remi源及配置 httpd-2.2.15 php-5.4.45)一臺redis服務器(yum安裝remi源及配置 redis-3.2.6)保證apache服務器可以訪問redis服務器的6379端口具體步驟&#xff1a;1、在apachephp服務器上安裝redis擴展點擊(此處)折疊或打開yu…