Coder Social home page Coder Social logo

davidkitano / uni-infinite-scrolling Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 911 KB

A simple infinite scrolling [handwriting] realization using Vue3 + Vite + TypeScript + Uniapp etc..

License: Apache License 2.0

HTML 6.07% Vue 46.00% SCSS 28.10% TypeScript 19.82%
h5 uniapp front-end frontend infinite-scroll infinite-scrolling typescript vite vue vue3

uni-infinite-scrolling's Introduction

Uni-Infinite-Scrolling ⭐ 无限滚动瀑布流

This is a simple infinite scrolling realization, which used Vue3, Vite, TypeScript, Scss/Sass, Uniapp(DCloud), Normalize.css etc.. Uni stands for Uniapp the frame developed by DCloud.

Several algorithms, multi platform and terminal compatible and performance optimization included, such as handwriting debounce, throttle and so on.

Project views are developed with references to a Chinese app called Xiaohongshu (a.k.a. Red Little Book) interface, whose natural language is based in Mandarin.

Placeholder images are from Placeholder.

这是一个简单的图文无限滚动瀑布流实现,使用技术涉及Vue3, Vite, TypeScript, Scss/Sass, Uniapp, Nomarlize.css等。

包含一部分算法、多平台多终端兼容以及性能优化内容,如手写的节流与防抖等。

项目语言为中文,参考了小红书的界面。

占位图来自Placeholder

Preview ⭐ 预览

These two preview pages are ran in real iPhone 12 Pro Safari (Address bar hidden) and Google Chrome (F12 Mobile Mode).

预览画面来自于iPhone 12 Pro Safari真机画面(隐藏地址栏)以及Google Chrome(F12开发者工具移动端模式)。

Google Chrome

Google Chrome

Safari (iPhone 12 Pro)

Safari (iPhone 12 Pro) - 1 Safari (iPhone 12 Pro) - 2 Safari (iPhone 12 Pro) - 3

To Build & Notes ⭐ 构建方法与注意事项

  1. If the node environment is still unloaded, please run npm install in powershell first.

    如果无Node环境,请先在终端运行 npm install

  2. Use dev:h5 or uni to run in development mode (dev:h5:net or uni --host for both local and network server).

    使用 dev:h5uni 在开发模式下运行 (使用 dev:h5:netuni --host 可同时开启本地服务器与网络服务器)。

  3. Use build:h5 or uni build to pack through Vite to production environment (Server or virtual server like Live Server needed).

    使用 build:h5uni build 通过Vite打包到生产环境。(需要服务器环境)

  4. Due to the features of Uniapp(DCloud) Frame, this project can be packed to various platforms within considerable compatibility (NOT 100% FULLY). You can look up the package.json file to see platforms supported. This is fully developed for H5 page initially.

    因为Uniapp框架的特性,这个项目可以打包到多个平台并保持较好的兼容性(但不是100%兼容)。您可以通过查看项目文件 package.json 来获取支持打包的平台。项目初衷是开发H5页面。

uni-infinite-scrolling's People

Contributors

davidkitano avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.