Extended Shortcode - typeit
The typeit
shortcode provides typing animation based on TypeIt library.
Just insert your content in the typeit
shortcode and that’s it.
The typeit
shortcode has the following named parameters:
tag [optional]
HTML tag of the content container.
code [optional]
Specify the language type of the code content that will be highlighted.
code-link [optional]
Whether to parse Markdown links in code content, default:
false
.group [optional]
Grouping of content, the content of the same group will start typing animation in order.
loop [optional]
Whether your content will continuously loop after completing.
Simple Content
Simple content is allowed in Markdown
format and without rich block content such as images and more…
Example typeit
input:
|
|
The rendered output looks like this:
This is a paragraph with typing animation based on TypeIt…
Alternatively, you can use custom HTML tags.
Example typeit
input with h4
tag:
|
|
The rendered output looks like this:
This is a paragraph with typing animation based on TypeIt…
Code Content
Code content is allowed and will be highlighted by named parameter code
for the type of code language.
Example typeit
input with code
:
|
|
The rendered output looks like this:
public class HelloWorld { public static void main(String []args) { System.out.println("Hello World"); } }
Group Content
All typing animations start at the same time by default.
But sometimes you may want to start a set of typeit
contents in order.
A set of typeit
contents with the same value of named parameter group
will start typing animation in sequence.
Example typeit
input with group
:
|
|
The rendered output looks like this:
First this paragraph begins
Then this paragraph begins
Loop Content
By default, the typing animation will stop after completion.
Example typeit
input with loop
:
|
|
The rendered output looks like this:
This content will continue to loop after the typing animation is complete.
Related Content
- Extended Shortcode - bilibili
- Extended Shortcode - music
- Extended Shortcode - mapbox
- Extended Shortcode - echarts
- Extended Shortcode - mermaid