Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morphext WP

Version 2.0.0 - A secure, lightweight text animation plugin for WordPress

Description

Morphext WP is a simple and lightweight WordPress plugin that brings the popular Morphext text animation library to WordPress with enhanced security and compatibility. This plugin is a complete rewrite and drop-in replacement for the original wp-morphext plugin created by Nate Gay, designed to address security concerns while maintaining full compatibility.

Features

  • Lightweight & Fast - Minimal overhead, optimized performance
  • Secure - No inline JavaScript, follows WordPress security best practices
  • Easy to Use - Simple shortcode implementation
  • Responsive - Works seamlessly across all devices
  • Rich Animations - Supports all Animate.css animations
  • Drop-in Replacement - Fully compatible with original wp-morphext plugin
  • Version Continuity - Continues from version 1.4.0 as version 2.0.0

Inspiration & History

This plugin was inspired by and is a complete rewrite of the original wp-morphext plugin created by Nate Gay. Due to security concerns with inline JavaScript in the original version, this new implementation was created to provide a more secure alternative while maintaining 100% compatibility.

  • Original Author: Nate Gay
  • Original Version: 1.4.0 (archived)
  • New Version: 2.0.0 (continues development)
  • Compatibility: Drop-in replacement for original plugin
  • License: GPL2+

Requirements

  • WordPress: 6.8.3 or higher (tested)
  • PHP: 8.3 or higher (tested)
  • jQuery: 3.7.1 (included with WordPress 6.8.3)

Dependencies

This plugin uses the following external libraries:

Dependency Chain

The plugin follows this loading order:

  1. Animate.css (animate.min.css) - Animation library
  2. Plugin Styles (morphext-wp.css) - Depends on Animate.css
  3. jQuery - WordPress core dependency
  4. Morphext Library (morphext.min.js) - Depends on jQuery
  5. Plugin Script (morphext-wp.js) - Depends on jQuery and Morphext library

Installation

  1. Download the plugin files
  2. Upload to your WordPress plugins directory (/wp-content/plugins/)
  3. Replace the original wp-morphext plugin or deactivate wp-morphext plugin and delete (if installed)
  4. Activate the plugin through the WordPress admin dashboard
  5. Start using the shortcode in your posts and pages

Usage

Basic Shortcode

Use the [wpmorphext] shortcode in any WordPress editor:

[wpmorphext animation="fadeIn" speed="3000" text="Text 1, Text 2, Text 3"]

Shortcode Parameters

  • animation - Animation effect (default: "bounceInLeft")
    • Options: fadeIn, bounceIn, slideInUp, rotateIn, zoomIn, etc.
  • speed - Animation speed in milliseconds (default: "3000")
    • Range: 100ms to 10000ms
  • text - Comma-separated text phrases (default: "Animation Test, Working, Success")

Examples

Simple Text Rotation

[wpmorphext text="Hello, Welcome, Greetings"]

Fade Animation

[wpmorphext animation="fadeIn" speed="2000" text="Creative, Innovative, Professional"]

Bounce Animation

[wpmorphext animation="bounceInLeft" speed="2500" text="Design, Develop, Deploy"]

Fast Animation

[wpmorphext animation="slideInUp" speed="1500" text="Quick, Fast, Speedy"]

Supported Animations

The plugin supports all Animate.css animations. Here are the complete animation options:

Attention Seekers

  • bounce, flash, pulse, rubberBand, shake, headShake, swing, tada, wobble, jello, heartBeat

Bouncing Entrances

  • bounceIn, bounceInDown, bounceInLeft, bounceInRight, bounceInUp

Bouncing Exits

  • bounceOut, bounceOutDown, bounceOutLeft, bounceOutRight, bounceOutUp

Fading Entrances

  • fadeIn, fadeInDown, fadeInDownBig, fadeInLeft, fadeInLeftBig, fadeInRight, fadeInRightBig, fadeInUp, fadeInUpBig, fadeInTopLeft, fadeInTopRight, fadeInBottomLeft, fadeInBottomRight

Fading Exits

  • fadeOut, fadeOutDown, fadeOutDownBig, fadeOutLeft, fadeOutLeftBig, fadeOutRight, fadeOutRightBig, fadeOutUp, fadeOutUpBig, fadeOutTopLeft, fadeOutTopRight, fadeOutBottomLeft, fadeOutBottomRight

Flippers

  • flip, flipInX, flipInY, flipOutX, flipOutY

Lightspeed

  • lightSpeedInRight, lightSpeedInLeft, lightSpeedOutRight, lightSpeedOutLeft

Rotating Entrances

  • rotateIn, rotateInDownLeft, rotateInDownRight, rotateInUpLeft, rotateInUpRight

Rotating Exits

  • rotateOut, rotateOutDownLeft, rotateOutDownRight, rotateOutUpLeft, rotateOutUpRight

Specials

  • hinge, jackInTheBox, rollIn, rollOut

Sliding Entrances

  • slideInDown, slideInLeft, slideInRight, slideInUp

Sliding Exits

  • slideOutDown, slideOutLeft, slideOutRight, slideOutUp

Zooming Entrances

  • zoomIn, zoomInDown, zoomInLeft, zoomInRight, zoomInUp

Zooming Exits

  • zoomOut, zoomOutDown, zoomOutLeft, zoomOutRight, zoomOutUp

View all animation demos →

Use Cases

This plugin is ideal for:

  • Portfolio Websites - Showcase different services or skills
  • Business Sites - Highlight key messages or taglines
  • Blogs - Create engaging headers or call-to-actions
  • Migration Projects - Drop-in replacement for original wp-morphext plugin
  • Simple Animations - When you need text rotation without complex setups

Migration from Original Plugin

This plugin is designed as a drop-in replacement for the original wp-morphext plugin:

  1. Deactivate the original wp-morphext plugin
  2. Install and activate Morphext WP
  3. No changes needed - all existing shortcodes will work identically
  4. Enhanced security - no inline JavaScript vulnerabilities

Security Features

  • ✅ No inline JavaScript
  • ✅ Sanitized input parameters
  • ✅ WordPress coding standards compliant
  • ✅ Secure script enqueuing
  • ✅ Nonce protection for AJAX calls

Changelog

Version 2.0.0

  • Complete rewrite for security improvements
  • Removed inline JavaScript dependencies
  • Updated to Animate.css v4.1.1 compatibility
  • Tested with PHP 8.3 and WordPress 6.8.3
  • Enhanced error handling and validation
  • Continues development from original v1.4.0

License

This plugin is licensed under the GPL2+ license, the same as WordPress.

Support

For issues, suggestions, or contributions, please refer to the plugin documentation or create an issue in the plugin repository.


Made with ❤️ for the WordPress community

About

A simple and lightweight WordPress plugin that brings the popular Morphext text animation library to WordPress with enhanced security and compatibility

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages