Hi please help me out how can i target a specific element which is .typed::after using js ? the code below can only target classes without ::after or before and the cursor is on the after of typed
HTML
<span class="typed"></span>
JS
$(function(){
$(".typed").typed({
strings: ["the Philippines"],
// Optionally use an HTML element to grab strings from (must wrap each string in a <p>)
stringsElement: null,
// typing speed
typeSpeed: 40,
// time before typing starts
startDelay: 1200,
// backspacing speed
backSpeed: 20,
// time before backspacing
backDelay: 500,
// loop
loop: true,
// false = infinite
loopCount: 1,
// show cursor
showCursor: false,
// character for cursor
cursorChar: "|",
// attribute to type (null == text)
attr: null,
// either html or text
contentType: 'html',
// call when done callback function
callback: function() {
$(".typed::after").hide();
},
});
});