CSS3 animation attribute series transform details scale_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:53:00
Original
1021 people have browsed it

Let’s start with the introduction of 3 aspects:

1, scale(x,y) Scale the element

  • 🎜> Y is an optional parameter . If it is not set, it means that the scaling factor of X and Y in both directions is the same
  • . And
  • subject to X. Css code
  • transform:scale(2,2.5);

    2. The scaleX() element only scales the element on the X-axis (horizontal direction).

    The default value is 1, and the base point is also at the center of the element. The base point can be changed by transform-origin

  • Css code
  • transform:scaleX(2);

    3. The scaleY() element only scales the element on the Y axis (vertical direction).

    The base point is also at the center of the element. The base point can be changed through transform-origin.

  • Css code
  • transform:scaleY(2);

    Finally, let’s look at the

    compatibility writing method

    :

    Css code

    .test{

    -moz-transform:scale(2,2);
      -webkit-transform:scale(2,2) ;
    1. -o-transform:scale(2,2);
    2. background:url(img/i.png) no-repeat;
    3. width:198px;
    4. height:133px; 🎜>
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template