Animated Typed JS Shortcode Icon

Animated Typed JS Shortcode

By Yong

Active Installs

1,000+

Last Updated

August 22, 2024

First Released

July 22, 2020

Download History (Last one month)


Contributors

Create an animated typing effect with Typed.js easily.

Just install and activate, Animated Typed JS Shortcode plugin and you can start using [typedjs][/typedjs] shortcode to create your animated typing text.

No settings needed just plug and play.

How to use the shortcode?

You can use the shortcode just like this:

[typedjs]My animated typing text[/typedjs]

To show more than 1 string/text, separate the strings with a double colons (::) like this:

[typedjs]My animated typing text::It's freaking awesome![/typedjs]

If you want to customize your animated text behaviour, you can use shortcode attributes to do that like this:

[typedjs loop=true]My animated typing text::It's freaking awesome!::It's now looping, OMG![/typedjs]

Here are the list of all available attributes that you can use:

  • typespeed : The text typing speed in milliseconds (default: 50)
  • startdelay : Delay time before typing start in milliseconds (default: 500)
  • backspeed : Backspacing speed in milliseconds (default: 50)
  • backdelay : Time before backspacing in milliseconds (default: 500)
  • smartbackspace : Only backspace what doesn’t match the previous string (default: true)
  • shuffle : Shuffle the strings (default: false)
  • fadeout : Fade out instead of backspace (default: false)
  • fadeoutdelay : Time before fade out in milliseconds (default: 500)
  • loop : Loop strings animation (default: false)
  • loopcount : Amount of loops if enabled (default: Infinity)
  • showcursor : Show/hide cursor (default: true)
  • cursorchar : Character to be used as cursor (default: |)
  • class: Custom class for the shortcode element (default: ”)

Optimize Javascript loading

The typed.min.js is only 12KB, in the previous version I tried to load the script only when the shortcode is used, but it’s not working properly because the script is loaded asynchronously. So, I decided to load the script in the footer of the page to make sure it’s loaded properly.

However, if you want to load the script only on specific pages, you can use this hook to enqueue the script only on specific pages:

`php

add_action(‘wp_enqueue_scripts’, ‘my_custom_typedjs_script’);
function my_custom_typedjs_script() {
if ( ! is_page( ‘my-page-slug’ ) ) {
wp_dequeue_script( ‘typedjsshortcode’ );
}
}
`

This will dequeue the script on all pages except the page with the slug my-page-slug.

CREDITS

Thanks to Matt Boldt for creating this cool library Typed.js!

  1. Upload “animated-typed-js-shortcode” folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
How do i get support?

You can get support by going to Support section of this plugin page

Changelog

2.1

Release date: July 27th, 2024

  • WordPress 6.6 compatibility check
  • Add validation and condition to prevent XSS injection on the shortcode attributes

2.0

Release date: August 12th, 2023

  • WordPress 6.3 compatibility check
  • Add attribute class to add custom class to the shortcode element

1.1

Release date: July 22nd, 2021

  • WordPress 5.8 compatibility check

1.0

Release date: March 23rd, 2020

  • Initial release.
<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
2.1.2 Download Stable
2.1 Download Stable
2.0 Download Stable
1.1 Download Stable
1.0 Download Stable
Development Download Trunk

Plugin Info

  • Version: 2.1.2
  • Last Updated: August 22, 2024
  • Active Installs: 1,000+
  • WordPress Version: 4.0 or higher
  • Tested up to: 6.6.5
  • PHP Version: 7.4 or higher
  • Tags:    
    animation jquery shortcode typography

Ratings


4.3 out of 5 stars. (6 reviews)

See all reviews
Scroll to Top