- Configure any element with attributes
- Trigger interaction when the element enters into the view (similar to scroll into view)
Add script
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/wio-typed@latest/build/index.min.js" />
data-wio-typed
mandatory to enable typed.js on the element | should be set astrue
data-wio-typed-speed
type speed in milliseconds |number
data-wio-typed-start-delay
time before typing starts in milliseconds |number
data-wio-typed-back-speed
backspacing speed in milliseconds |number
data-wio-typed-back-delay
time before backspacing in milliseconds |number
data-wio-typed-smart-backspace
only backspace what doesn't match the previous string |true
orfalse
data-wio-typed-fade-out
Fade out instead of backspace |true
orfalse
data-wio-typed-fade-out-class
css class for fade animation |string
data-wio-typed-fade-out-delay
Fade out delay in milliseconds |number
data-wio-typed-loop
loop typing animation |-1
for infinite loop,0
for no loop or any othernumber
for loop countdata-wio-typed-cursor
for custom cursor |none
for no cursor, add any otherstring
to show as cursor example|
for pipe cursordata-wio-typed-auto-cursor-css
insert CSS for cursor and fadeOut into HTML |true
orfalse
data-wio-typed-content-type
'html' or 'text' for plaintextdata-wio-typed-enter-view
trigger typing on element is visible on screendata-wio-typed-enter-view-offset
A value from 0 to 1 of how far from the bottom of the viewport to offset the trigger by. 0 = top of element crosses bottom of viewport (enters screen from bottom), 1 = top of element crosses top of viewport (exits screen top). |0
to1
data-wio-typed-enter-view-once
Whether or not to trigger the animation just once. |true
orfalse
add following css style to head
<style>
.wio-typed-reset{
opacity: 0;
}
</style>
then add wio-typed-reset
class to your element