随笔03

作者: 浮生小孟 | 来源:发表于2017-06-25 01:02 被阅读0次

1、css3中transfrom和transition、animation的区别

transfrom描述元素静态样式,而transition和animation能够实现动画效果,所以一般transfrom配合后两者使用。

结论:

1. 如果要灵活定制多个帧以及循环,用animation.

2. 如果要简单的from to 效果,用 transition.

3. 如果要使用js灵活设定动画属性,用transition.

2   function testFun(x, y) {

       return this.a + this.b + x + y;

}

 var o = { a: 1, b: 2 };

 var A = testFun.call(o, 10, 20);

 var B = testFun.apply(o, [10, 20]);

 console.log(A,B)

 console.log(o);

相关文章

网友评论

    本文标题:随笔03

    本文链接:https://www.haomeiwen.com/subject/ahslcxtx.html