Dynamic CSS: Transforming Objects

. CSS- .

css transformation




, . CSS- . .

, , . - , .

() :

  • ;
  • ;
  • .

, 2D, 3D-.

, CSS- .

Author's example is not a picture




- , - . CSS HTML- .





Author's example is not a picture




hover.

transform translate , CSS- left top. skew - .

, skew , CSS- skew . , « » - .

CSS . , .

css animation




, , : , . .





Author's example is not a picture




CSS :

Author's example is not a picture




transform-origin , . , , CSS-.

rotate - rotateX rotateY - «X» «Y» .

css text transformation




. , . CSS - .

animation

CSS animation @keyframes , .

Author's example is not a picture




- . , - , - . . :

Author's example is not a picture




animation @keyframes. . .

animation

animation . :

  • animation-name - ;
  • animation-duration - ( "s", "ms");
  • animation-timing-function - (ease, linear, ease-out, ease-in, ease-in-out, cubic-bezier);
  • animation-iteration-count - infinite;
  • animation-direction - (normal, reverse, alternate, alternate-reverse );
  • animation-play-state - (running, paused);
  • animation-delay - ( "s", "ms");
  • animation-fill-mode - (
  • none, forwards, backwards, both);

animation @keyframes, .

, . @keyframes, , - .

transformation functions




( / ) linear. - ease-out, - ease-in. ease - , ease-in-out - .

cubic-bezier .

Author's example is not a picture




. «GO!» .

@keyframes «» (. ), . , .

0 % 100 % , . from to, 0 % 100 %. , / . .

: 0 %, 25 %, 50 %, 75 % 100 %. : 0 %, 50 % 100 %. , .

transformation properties




When constructing any type of transformation, one essential rule should be observed. Using JavaScript is not always acceptable, especially when it comes to programmatically changing the properties of elements, for example, changing the value of the background-image property.

HTML, CSS, and JavaScript work well together, but in all cases you need to consider the actual functionality of each component. Ideally, when they work in a clear combination and do not interfere with each other.




All Articles