HTML+CSS案例展示(CSS3D效果旋转相册)

参考来源:

黑马程序员pink老师前端入门教程,零基础必看的h5(html5)+css3+移动端前端视频教程_哔哩哔哩_bilibili

效果展示:

总结:

  1. transform:translate(x,y) rotate(180deg) scale() ... 顺序对最后的效果有影响,需要根据需求安排位移和其他属性的顺序;
  2. 实现暂停动画效果:animation-play-state:paused; 经常和鼠标经过等其他配合使用;
  3. 实现动画走回来,而不是跳回来:animation-direction:alternate; 
  4. 实现动画结束后,停在结束位置:animation-fill-mode:forwards; ;
  5. 实现打字机动画效果:steps() 指定时间函数的间隔步长,用来分几步完成动画,有了 steps() 就不要写 easelinear
  6. 实现大数据热点图时,不要用 scale ,会把阴影放大;
  7. 3D透视 perspective 和 3D呈现 transform-style:preserve-3d; 需要写在被观察盒子的父级盒子里面;

网页如下:

https://zhiyuanda.github.io/css3dphoto/

网页代码如下:

HTML+CSS:




    
    
    
    css3dphoto
    


    

你可能感兴趣的:(html,css,前端,css3)