修复了新版的firefox不兼容,翻转的时候只是图片翻转,背面不显示问题
地址:https://github.com/zoujian3820/gallery-by-react
欢迎star
地址:https://github.com/zoujian3820/gallery-by-react
欢迎star
2017-11-09
新版的firefox不兼容,表示翻转的时候只是图片翻转了,背面隐藏的那个白色底的提示面板
(<div class="img-back">)不会显示,因为翻转了180°所以一直都为隐藏
transform: rotateY(180deg) translateZ(1px);backface-visibility: hidden;
而老师的做法是,通过把父元素(<figure class="img-figure">)
加上 .is-inverse 类, 再翻转180° 而使 .img-back 重回翻转前的正面,但是新的firefox不支持,我的版本是56.0.2
(<div class="img-back">)不会显示,因为翻转了180°所以一直都为隐藏
transform: rotateY(180deg) translateZ(1px);backface-visibility: hidden;
而老师的做法是,通过把父元素(<figure class="img-figure">)
加上 .is-inverse 类, 再翻转180° 而使 .img-back 重回翻转前的正面,但是新的firefox不支持,我的版本是56.0.2
2017-11-09
修复了一些坑,使用了ES6的写法,css预处理器采用了stylus
项目地址:https://github.com/zoujian3820/gallery-by-react/tree/master
欢迎start,谢谢
项目地址:https://github.com/zoujian3820/gallery-by-react/tree/master
欢迎start,谢谢
2017-11-07
跟着老师做下来了,用的 ES6 + webpack 构建的,一路也踩了很多坑,commits 有构建步骤,各种函数也有释义,大家可以参考一下。
项目地址:https://github.com/Pegggy/gallery
预览地址:https://pegggy.github.io/gallery/dist/index.html
项目地址:https://github.com/Pegggy/gallery
预览地址:https://pegggy.github.io/gallery/dist/index.html
2017-09-28