Text Rotator Filter
Introduction
Text Rotator Filter is a very simple and lightweight module giving node author a filter to create a 'text rotator' effect.
It does so by integrating Simple Text Rotator jQuery plugin with text format filters.
You can see it in action on this page: http://freelance-drupal.com
Install and manage dependencies via composer
1. Install the module itself :
composer require drupal/text_rotator_filter
2. Install wikimedia/composer-merge-plugin :
composer require wikimedia/composer-merge-plugin
3. Edit your "merge-plugin" section under "extra" in your *root* composer.json so it looks like:
"extra": {
"merge-plugin": {
"include": [
"modules/contrib/text_rotator_filter/composer.libraries.json"
],Beware to change the path to your contrib module folder if under web or docroot for instance
4. Run a locked update:
composer update --lock
Install and manage dependencies the old way
1. Download and unzip text_rotator_filter module from https://www.drupal.org/project/text_rotator_filter
and place it into /modules/contrib folder.
2. Download and unzip Simple Text Rotator from https://github.com/peachananr/simple-text-rotator
and place it into /libraries folder so the following path exists
/libraries/simple-text-rotator/jquery.simple-text-rotator.min.js
Configuration:
1. Move to /admin/config/content/formats.
2. Edit the desired text format.
3. Enable the text rotator filter.
4. Configure the filter options and save.
Usage
- Settings can be changed per format at admin/config/content/formats/manage/xxx
- In your content, simply insert your text as follow:
Here is a [rotate]simple|easy|cute[/rotate] way to rotate text.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.