0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Transition

Posted at

slide animation

transition + transform + z-index + overflow

transition

transitionプロパティを使って、移り変わりの緩急を定義できる

transrate

translateは物体の位置を移動する関数
transform: translate(50px, 70%)
transform: translateX(100%)
transform: translateY(100%)

X=縦 Y=横

rotate

rotateは物体を回転させる関数
transform: rotate(30deg);

transform-origin

transform-originは支点を指定する関数
transform-origin: center, center;

skew

skewは平行四辺形を定義する関数
transform: skew(30deg);

scale

scaleは物体のサイズを引数倍にする関数
transform: scale(1.1, 1.2);

z-index

z-indexは前面に出る方を指定できるプロパティ(positionがstatic以外のとき)
A(z-index: 20;)B( z-index: 10;)の場合、Aが前面に来る

fixed

fixedはwindowの指定の位置に固定する
position: fixed;

sticky

stickyは親要素の範囲内で位置を固定できる
position: sticky;

overflow

overflow: visible; 表示
overflow: hidden; 非表示

::before, ::after

擬似要素
beforeは要素の一番先頭、afterは要素の一番最後に付与される
content ''が必須

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?