CSSアニメーション-タイミング-関数プロパティ
次のコードを実行して、 animation-timing-functionを実装してみてください。 プロパティ:
例
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
position: relative;
background-color: yellow;
animation-name: myanim;
animation-duration: 2s;
animation-direction: alternate-reverse;
animation-iteration-count: 3;
}
@keyframes myanim {
from {left: 100px;}
to {left: 200px;}
}
#demo1 {animation-timing-function: ease;}
#demo2 {animation-timing-function: ease-in;}
</style>
</head>
<body>
<div id = "demo1">ease effect</div>
<div id = "demo2">ease-in effect</div>
</body>
</html> -
CSSのflex-shrinkプロパティをアニメーション化する
にアニメーションを実装するには フレックスシュリンク CSSを使用したプロパティでは、次のコードを実行してみることができます 例 <!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex;  
-
CSS分離プロパティ
分離プロパティは、要素が新しいスタッキングコンテンツを作成する必要があるかどうかを定義するために使用されます。構文は次のとおりです- 構文 isolation: auto|isolate|initial|inherit; 例 <!DOCTYPE html> <html> <head> <style> .demo1 { background-color: orange; } #demo2 { width: 300px; height: 400px; } .demo3 {