第一阶段
课程信息
课程名称:前端工程师
课程章节:过渡项目实战3
课程讲师:未知
第二阶段
课程内容: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>过渡效果实战课3</title> <style> *{ margin: 0; padding: 0; } .box{ width: 200px; height: 200px; margin:40px auto; perspective: 500px; position: relative; } .box img{ width: 200px; height: 200px; border: 1px solid #000; border-radius: 50%; } .box img.dog{ position: absolute; top: 0; left: 0; /* 以左上角所在的纵轴进行翻转 */ transform-origin: 0 0; transition: transform 1s ease 0s; } .box:hover img.dog{ transform: rotateY(-180deg); } .no2 img.dog{ /* 以最右边所在的纵轴进行翻转 */ transform-origin:100% 100%; } .no2:hover img.dog{ transform: rotateY(180deg); } .no3 img.dog{ /* 以最上边所在的横轴进行翻转 */ transform-origin:0 0; } .no3:hover img.dog{ transform: rotateX(180deg); } </style> </head> <body> <div class="box"> <img class="cat" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="images/cat.jpg" alt=""> <img class="dog" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="images/dog.jpg" alt=""> </div> <div class="box no2" > <img class="cat" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="images/cat.jpg" alt=""> <img class="dog" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="images/dog.jpg" alt=""> </div> <div class="box no3" > <img class="cat" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="images/cat.jpg" alt=""> <img class="dog" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="images/dog.jpg" alt=""> </div> </body> </html>
第三阶段
学习收获与心得:
写代码的时候要伴随技术文档,不管是方便自己以后的阅读和快速回顾, 还是方便他们对代码进行重构编辑,都是非常必要的。一个人的对手不是别人,而是自己,不是自己的智商, 而是自己的懒惰。惰于思考
第四阶段
学习完毕打卡截图:
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦