|
hace 5 meses | |
---|---|---|
.. | ||
css | hace 5 meses | |
js | hace 5 meses | |
vendors | hace 5 meses | |
.gitignore | hace 5 meses | |
README.md | hace 5 meses | |
home.html | hace 5 meses | |
package-lock.json | hace 5 meses | |
package.json | hace 5 meses | |
playlist.html | hace 5 meses | |
song.html | hace 5 meses | |
yarn.lock | hace 5 meses |
Notice: 请使用手机浏览器扫一扫 或 电脑开启device mode浏览
歌词滚动高亮
百分百像素级还原
flex布局
原生js实现
模拟数据
.noCollapse::after{
content:'';
display:table;
}
.noCollapse::before{
content:'';
display:table;
}
filter: blur(100px) brightness(.2);
element {
display: -webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient: vertical;
overflow:hidden;
}
遇到问题解决方法:
Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then use 'git add/rm ' as appropriate to mark resolution, or use 'git commit -a'
应该是因为local文件冲突了
解决方法: 1.pull会使用git merge导致冲突,需要将冲突的文件resolve掉 git add -u, git commit之后才能成功pull. 2.如果想放弃本地的文件修改,可以使用git reset --hard FETCH_HEAD,FETCH_HEAD表示上一次成功git pull之后形成的commit点。然后git pull. 注意: git merge会形成MERGE-HEAD(FETCH-HEAD) 。git push会形成HEAD这样的引用。HEAD代表本地最近成功push后形成的引用。 ```
animation
实现,特别是animation-play-state
的使用。不过,这里有一个小bug,即在ios上的webkit内核浏览器中(例如:safari,chrome),-webkit-animation-play-state:paused
不起作用,也就是说,动画会一直进行下去,即使按了暂停按钮。当然,可以用jQuery的addClass/removeClass方法配合CSS3的.no-animation{-webkit-animation:none!important;}
样式解决这个bug,但是这又会产生新的问题,即点击暂停,动画此时可以暂停;但是当再次点击播放时,动画就会重新开始,而不是接着之前的状态继续。所以这两种方法都不太完美。这里我选用了第一种方法。transform
实现,特别是transform:rotate()
的使用。但是transform属性默认是以transform-origin:50% 50%
为固定点进行旋转。而这里需要以disc指针的顶部为固定点进行旋转,所以应设置其样式为transform-origin:left top;
。::before
和::after
伪元素减少html标签的使用。background,animation
等简写属性。UglifyJsPlugin()
方法对JavaScript文件压缩。