[wordpress插件] Countup JS计数JS

wordpress 插件 文章 2020-04-03 17:20 537 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin is based on and utilizes CountUp.js, which is a dependency-free, lightweight JavaScript “class” that can be used to quickly create animations that display numerical data in a more interesting way.

此插件基于CountUp.js,并利用CountUp.js,它是一种无依赖项的轻量级JavaScript“类”,可用于快速创建以更有趣的方式显示数字数据的动画。

Based off of: https://inorganik.github.io/countUp.js/

基于:https://inorganik.github.io/countUp.js/

Usage & Configuration

用法和配置

Simply add the following shortcode to your posts, pages or widgets [countup]

只需将以下简码添加到您的帖子,页面或小部件中 [countup]

1) Basic customization can occur through the shortcode arguments

1)基本的自定义可以通过简码参数进行

The shortcode accepts the following arguments

简码接受以下参数

    • start: number to begin the counter from
    • 开始:从此开始计数的数字

    • end: number to end the counter at
    • end:结束计数器的数字

    • decimals: # of decimal places to show
    • 小数:要显示的小数位数

    • duration: time in second or the counter to round

      持续时间:以秒为单位或要倒数的时间

      [countup start=”5″ end=”100″ decimals=”3″ duration=”5″]

      [countup start =” 5” end =” 100”小数点=” 3” duration =” 5”]

    2) Further adjustments can be made through the settings panel, in the Countup.js options page, for the following options:

    2)可以通过Countup.js选项页面中的设置面板对以下选项进行进一步调整:

    `

     `

    easing:

    缓动:

    grouping: groups the content into sections (eg. 1,000 vs 1000)

    分组:将内容分组(例如1,000与1000)

    seperator: (default is comma)

    分隔符:(默认为逗号)

    decimal: symbol to use for decimal spot

    小数:用于小数点的符号

    prefix: ( character(s) at beginning of string )

    前缀:(字符串开头的字符)

    suffix: ( character(s) at end of string )
        

    后缀:(字符串末尾的字符)
        

    `

    `

安装步骤

    1. Use the WordPress Installer, Updater
    2. 使用WordPress安装程序,更新程序

    3. Activate in the “Plugins” admin panel
    4. 在“插件”管理面板中激活

    5. Visit the “Countup.js” menu option in the “settings” tab to configure options
    6. 访问“设置”标签中的“ Countup.js”菜单选项以配置选项

下载地址
https://downloads.wordpress.org/plugin/countup-js.zip
-EOF-

AI助手支持GPT4.0