Home  >  Article  >  Web Front-end  >  How to implement text scrolling in uniapp

How to implement text scrolling in uniapp

coldplay.xixi
coldplay.xixiOriginal
2020-12-15 16:44:559275browse

Uniapp's method to implement text scrolling: 1. Add [/components/screenTextScroll.vuecopy] to your own project; 2. Add relevant code to [main.js].

How to implement text scrolling in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommended (free): uni-app development tutorial

How to implement text scrolling in uniapp:

Use text scrolling Column component

1. Add /components/screenTextScroll.vuecopy to your own project (under the components directory)

2. Add code to main.js

import screenTextScroll from '@/components/screenTextScroll.vue' 
Vue.component('textscroll', screenTextScroll)

3. Call

<textscroll :list="list" />

in the view you need to use. Related free learning recommendations: php programming (video)

The above is the detailed content of How to implement text scrolling in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn