Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

周四班-第三次作业总结 & 谈谈CSS3动画 #3

Open
wujr5 opened this issue Oct 28, 2015 · 3 comments
Open

周四班-第三次作业总结 & 谈谈CSS3动画 #3

wujr5 opened this issue Oct 28, 2015 · 3 comments
Labels

Comments

@wujr5
Copy link
Owner

wujr5 commented Oct 28, 2015

周四班第三次作业总结 & life coding show & css3动画初探

1 第三次作业总结

1.1 优点

1.1.1 开始有意识地添加注释



1.1.2 效果大致符合要求,都有自己用心的思考

1.1.3 自己记录改进过程


1.1.4 大部分同学的代码风格都不错

参考: 前端编程代码风格

1.1.5 大部分同学的作业都符合题目要求,小圈的散开收回、大圈和@的缩放都很完整,与视频效果吻合。

1.1.6 有的同学的外观和设计图基本吻合,找不到任何瑕疵。

1.1.7 有同学提供的github链接中,有markdown语法所写的readme

1.2 缺点

1.2.1 效果理解有偏差

大气泡内容,缩放原点;小气泡缩放原点;中心气泡缩放原点;动画颤抖;

1.2.2 css注释符号不清

注释有点让人看不太懂,可能适得其反。

1.2.3 position属性特点不清

position: static, absolute, relative, fixed

参考:

  1. 学习css布局
  2. MDN position

1.2.4 作业的一些细节要求没有完成

配色,动画时间,大小等

1.2.5 仍有相当部分同学没按要求命名

这个不多说

1.2.6 有的同学注释写的太多了

如果能确定大家基本能看懂的地方,就不用注释啦。注意注释冗余。

1.2.7 比较多同学没有仔细观察视频的动画效果:鼠标移开之后没有做到小圈先收回,@再缩小。

这是普遍存在的问题。

1.2.8 部分同学的外观和设计图相差较大。

这个呵呵😷

1.3 优秀作业展示

1.3.1 优秀作业

14331291    吴思
14359047    洪生楠
14331077    关伟杰
14331091    胡南
14353101    黄炜
14331034    陈颂熙 
14331051    邓杰友
14331231    邱天睿
14331136    李为
14331327    颜鹏翔
14331020    陈纪庚
14331295    吴子昊
14331030    陈锐彬
14332011    梁权民

1.3.2 优秀作业展示


1.3.3 郝思佳:作业提点

有请美女TA 😍

2 life coding show

2.1 王老师 coding show

😄 王老师codingshow 😄

新地址:codingshow

3 css3动画初探

3.1 网页动画

总体来说有三种方式可以实现网页动画。

首先,是JavaScript实现。一般来说会直接使用JavaScript函数库,很少自己实现JS动画,因为比较复杂。优秀的函数库有JQuery等,还有一般的前端框架都会提供js动画。比如BootstrapMaterialize等。

由于目前我们还没有学习JS的只是,这部分的内容不讲。

其次,是CSS3中的transition实现。transition翻译为过渡,意思是当一些CSS属性发生变化的时候,通过设置transition,可以控制变化的过程。因此我们能够利用过渡实现动画。

第三,是CSS中的animation实现。animation是3D变形,比transition更复杂,功能也更强大。

3.2 transition 过渡

过渡其实是对于某个属性,或者某些属性而言的。比如,

<style>
    div {
        width: 100px;
        height: 100px;
        background: blue;
    }

    div:hover {
        width: 200px;
        height: 200px;
    }
</style>

<div></div>

当鼠标hover在div上的时候,div的宽度和高度就会突变成为200px,这时是突然变化的,没有过渡,也可以认为是动画,但是不美观。

transition属性就是用来调和这个变化过程的。

举个例子。transition intro

transition:MDN transition

transition语法:

transition: transition-property transition-duration transition-timing-function transition-delay[, ...]

属性如下:

  1. transition-property:需要过渡处理的属性
  2. transition-duration:延续时间
  3. transition-timing-function:属性值随时间的变化函数
  4. transition-delay:执行动画的延迟时间
transition-timing-function:

ease: 缓解效果,立方贝塞尔曲线
linear: 线性效果
ease-in: 渐显效果
ease-out: 渐隐效果
ease-in-out: 渐显渐隐效果
cubic-bezier: 特殊立方贝塞尔曲线

3.3 transform 2D变形

transform也可以看做是一个属性,包含很多变形函数。如果没有为transform设置transition,那也是一个瞬变效果,因此transform一般与transition配合使用。

举例说明。transform example

transform函数:

skew
matrix:矩阵变换
translate:移动元素
scale:缩放元素
rotate:旋转元素
skew:倾斜元素

3.4 animation 3D变形

举个例子:animation 3d

animation语法:

animation: animation-name animation-duration animation-timming-function animation-delay animation-iteration-count animation-direction
animation-name: 动画名称,对应关键帧的定义
animation-duration:动画时间
animation-timing-function:动画播放方式
animation-delay:延迟时间
animation-iteration-count:重复次数
animation-direction:播放方向

关键在于,定义关键帧。

@keyframes keyframeName {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(180deg);
    }
    100% {
        transform: rotateX(360deg);
    }
}

3.5 浏览器兼容处理

自己查阅相关资料。

4 本周作业

上周作业是正式分数。

本周作业不作为期末分数。只作为参考。

本周作业为,根据老师或者TA的提点,改进上周作业,按时提交。

改进原则:

1. 更接近题目要求的效果
2. css代码可读性更好
3. 在第二点的基础上,css代码更短。DRY:don‘t repeat yourself
4. 改善你的代码风格

5 接下来安排

小组内互动交流讨论

6 Tool tips

老师视频上提到的开发工具,还有我自己推荐的开发工具

6.1 Sublime Text

相信这个大家已经有了。链接:sublime text 3

6.2 Page Ruler

链接:page ruler

6.3 Colorzilla

链接:Colorzilla

6.4 Livereload

chrome插件结合软件一起使用。插件:chrome livereload,桌面应用:livereload

6.5 Markdown编辑器

三平台支持:haroopad

Mac强烈推荐:Mou

参考:

  1. Mac 下两款 Markdown 编辑器 Mou/MacDown 大 PK
  2. 10款流行的Markdown编辑器,总有一款适合你
  3. Markdown语法比较好的教程:Garrett Flavored Markdown Reference Guide

6.5 微博图床

写Markdown文本时的利器,免费图片网盘。新浪微博图床

6.6 网页截图fireshot

可以全网页截图或者滚动截图:fireshot

6.7 免费科学上网

这个我没有用过,大家不妨试下,同学推荐说好用。lantern

6.8 去除页面牛皮癣

免费去除页面广告:Adblock

@wujr5 wujr5 added the report3 label Oct 29, 2015
@wujr5
Copy link
Owner Author

wujr5 commented Oct 30, 2015

有其他好工具的,欢迎大家在评论里面推荐!😚

@wujr5
Copy link
Owner Author

wujr5 commented Oct 31, 2015

更新了report3,在markdown部分,添加markdown教程链接。

@ghostbody
Copy link

受教了,嘉荣大大

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants