Pixi.js这个框架是一个2D渲染引擎,主要使用的有两种渲染模式,WEBGL和CANVAS画布渲染,且提供强大的硬件加速让页面更加丝滑流畅。
本项目基于Pixi.js引擎实现一镜到底的效果,手指长按即可进行移动,原型是网易2016娱乐圈画圈,案例来源于H5案例分享。 地址:https://www.h5anli.com/cases/201612/wyylhz.html
策划上,图文展示类,回顾下2016年娱乐圈的热点事件总汇,采用长按屏幕的方式,一镜到底的视觉效果,盘点了2016年的11个热点事件,如近乎人人皆知的明星王宝强休妻,马蓉宋喆搞婚外情,郭德纲与曹云金的师徒撕逼等等,很有意思。 设计上,古风风格,有种穿越的娱乐感,有采用画中画的形式,让画面本身渗透出很多弦外之音,精致的画风融合着各种吐槽调侃,让人欲罢不能。 技术上,首屏的“娱乐园画传”几个大字的渐入动画采用的是gif动图,长按一镜到底的动画采用的是Canvas。
本项目需要使用本地服务器打开,这里使用的Http-server插件。 插件来源: https://www.npmjs.com/package/http-server
https://leo66666.github.io/Pixi-Entertainment-circle2016/index.shtml