posts - 29,  comments - 0,  views - 15019

1.Tranform 转换(2D,3D)

复制代码
2D:

div
{
margin:30px;
width:200px;
height:100px;
background-color:yellow;
/* Rotate div */
transform:rotate(9deg);
-ms-transform:rotate(9deg); /* Internet Explorer */
-moz-transform:rotate(9deg); /* Firefox */
-webkit-transform:rotate(9deg); /* Safari 和 Chrome */
-o-transform:rotate(9deg); /* Opera */
}
复制代码

 

3D:

div#div2
{
transform:rotateX(120deg);
-webkit-transform:rotateX(120deg); /* Safari and Chrome */
-moz-transform:rotateX(120deg); /* Firefox */
}

 

2.Transition 过渡

复制代码
move{
              position: absolute;
              top:10px;
              left:20px;
              transition: top 2s,left 2s,transform 2s;
 } 
.move.to
{
      position
: absolute;
top
:100px;
      left
:200px;
      transform:rotate(9deg);
}
复制代码

 

3.Animation 动画

复制代码
            @keyframes myfirst
            {
                from {top:10px;left:20px;}
                to {top:200px;left:100;}
            }
            @-moz-keyframes myfirst
            {
                from {top:10px;left:20px;}
                to {top:200px;left:100;}
            }
            @-webkit-keyframes myfirst
            {
                from {top:10px;left:20px;}
                to {top:200px;left:100;}
            }
            @-o-keyframes myfirst
            {
                from {top:10px;left:20px;}
                to {top:200px;left:100;}
            }

         .move{
              position: absolute;
              top:10px;
              left:20px;
 
          }

          .move.to{
              position: absolute;
              top:100px;
              left:200px;
              animation:myfirst 5s;
              -moz-animation:myfirst 5s;  /*Firefox */
            -webkit-animation:myfirst 5s;  /*Safari and Chrome */
            -o-animation:myfirst 5s;  /*Opera */
          }
复制代码

 

posted on   grape1211  阅读(170)  评论(0)    收藏  举报
(评论功能已被禁用)
编辑推荐:
· 如果单表数据量大,只能考虑分库分表吗?
· 一文彻底搞懂 MCP:AI 大模型的标准化工具箱
· 电商平台中订单未支付过期如何实现自动关单?
· 用 .NET NativeAOT 构建完全 distroless 的静态链接应用
· 为什么构造函数需要尽可能的简单
阅读排行:
· 如果单表数据量大,只能考虑分库分表吗?
· 一款让 Everything 更加如虎添翼的 .NET 开源辅助工具!
· (原创)[开源][.Net Framework 4.5] SimpleMVVM(极简MVVM框架)更
· 冲压车间软件实施
· 干货分享!MCP 实现原理,小白也能看懂
点击右上角即可分享
微信分享提示