html5 - js实现 fullpage 插件的功能
阿神
阿神 2017-04-17 13:02:28
0
1
368

去面试,丫的看了我的项目。还嫌弃我项目不该用插件写的,说为什么不用原生写? 大致的思路我是有的,无非就是检测到鼠标滚轮事件,然后触发某个函数。这个函数做一个平移,或者说是定位上的改变,将内容移动到屏幕看不到的地方,然后滚轮再滚动的时候移回来。

阿神
阿神

闭关修行中......

reply all(1)
左手右手慢动作

The idea is not wrong, I can only say that the interviewers are very similar. Do you need to develop everything yourself to make a product? For non-core functional components, the use of plug-ins is unavoidable. Besides, js plug-ins are originally a feature of the front-end.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!