3 Properties: Transition,animation,transform
Implementation steps:
1.CSS positioning 2.rgba Setting color transparency 3. Conversion + Animation Transform+animation 4. Smooth Transitions Transition Animation
======================== Beautiful Split Line =======================
Animation-delay
!transform move translate (npx,mpx), Zoom Scale[xy] (. N), tilt Skew (ndeg), rotate rotate[xyz] (ndeg) or rotate (1turn)
Border Implementing a circular, page-flipping effect that is loading
Animation rotation
<!DOCTYPE HTML><HTML><Head> <title></title> <styletype= "Text/css">@-webkit-keyframes Circle/*Safari and Chrome*/ {To{transform:Rotate (1turn);}} @keyframes Circle{To{transform:Rotate (1turn);}}. Ball{position:Absolute;Top:50%; Left:50%;width:50px;Height:50px;background:Red;Transform-origin:150% Center;//Transform-origin:250% Center;//Offset Axis animation:circle 1s infinite linear;-webkit-animation:circle 1s infinite linear; } </style></Head><Body> <Divclass= "Ball"></Div></Body></HTML>
Ellipse effect: is the outer layer plus a div set animation Transform:scaley (200): Set the value of the y-axis zoom conversion
Pendulum effect:
. ball{transform-origin:center top; animation:sway 2.2s infinite Alternate ease-in-out} @keyframes sway{To{transform: Rotate (30deg);}
How to write a CSS animation: 3 attributes implemented