Title: Word Switcher
Author: Bilal Akil
Published: <strong>2017 年 12 月 9 日</strong>
Last modified: 2017 年 12 月 21 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/word-switcher.svg)

# Word Switcher

 作者：[Bilal Akil](https://profiles.wordpress.org/bilalakil/)

[下载](https://downloads.wordpress.org/plugin/word-switcher.0.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/word-switcher/#description)
 * [评价](https://cn.wordpress.org/plugins/word-switcher/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/word-switcher/#developers)

 [支持](https://wordpress.org/support/plugin/word-switcher/)

## 描述

This plugin facilitates the usage of this Word Switcher JavaScript tool: https://
bitbucket.org/bilalakil/word-switcher

It creates a [word-switcher] shortcode where you can specify values for the tool’s
parameters and, of course, the words themselves, along with a fallback value to 
be displayed while the tool is being loaded or if it fails to load. When the page
is loaded the fallback content will be replaced with a word switcher.

Bring your own animations – it’s as easy as adding a couple of lines of CSS in the
Customizer. It also adds the `wordSwitcher` JavaScript function to the global scope
so you can do whatever you like with it.

Full usage example:

    ```
    Hello [word-switcher words="world, people, friends, everybody, mate" switchDelay="1000" random="true" animationDuration="null" className="hello-world-switcher"]world[/word-switcher]
    ```

This can be accompanied by the following CSS (which you can insert straight into
the Customizer) to simply fade the switching words in and out:

    ```
    .hello-world-switcher-enter-active, .hello-world-switcher-leave-active {
      transition: opacity 1s
    }
    .hello-world-switcher-enter, .hello-world-switcher-leave-to {
      opacity: 0
    }
    ```

Read the JavaScript tool’s documentation for more information regarding the parameters
and their default values, and how to use the animation classes (as inspired and 
imitated from the awesome Vue.js).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Word Switcher」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Bilal Akil ](https://profiles.wordpress.org/bilalakil/)

[帮助将「Word Switcher」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/word-switcher)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/word-switcher/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/word-switcher/)，或通过[RSS](https://plugins.trac.wordpress.org/log/word-switcher/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/word-switcher/)。

## 更新日志

#### 0.1.1

 * Removed the non-transpiled JavaScript file from the plugin.

#### 0.1.0

 * First release!
 * Using word-switcher v0.1.2 from npm.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0.0 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/word-switcher/)
 * 标签
 * [animation](https://cn.wordpress.org/plugins/tags/animation/)[effects](https://cn.wordpress.org/plugins/tags/effects/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[transition](https://cn.wordpress.org/plugins/tags/transition/)
 *  [高级视图](https://cn.wordpress.org/plugins/word-switcher/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/word-switcher/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/word-switcher/reviews/)

## 贡献者

 *   [ Bilal Akil ](https://profiles.wordpress.org/bilalakil/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/word-switcher/)