HTML5、CSS、Javascript、Typed.jsを使用してタイピングエフェクトを作成しています。 これは)Typed.jsタイプライターエフェクト使用時のエラー
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
</head>
<body>
<p class ="TypeWirter_effect"></p>
<script src="jquery-ui.min.js>"></script> //This is downloaded from jquery's Website n pasted in same folder
<script src="jquery.js"></script> //This is downloaded from jquery's Website n pasted in same folder
<script src="typed.min.js"></script> //This is downloaded from Typed.js main Website n pasted in same folder
<script>
$(function() {
$("#TypeWirter_effect").typed({
strings: ["Want to learn Coding ?", "Want to learn C++","Java","Python"],
typeSpeed: 0,
loop: true,
backSpeed: 30,
showCursor: true,
backDelay: 500,
startDelay: 1000,
contentType: 'text',
backspace: function(curString, curStrPos) {
setTimeout(function() {
// check string array position
// on the first string, only delete one word
// the stopNum actually represents the amount of chars to
// keep in the current string. In my case it's 3.
if (curString.arrayPos == 20) {
curString.stopNum = 14;
}
//every other time, delete the whole typed string
else {
self.stopNum = 14;
}
}
)
}
});
});
</script>
</body>
</html>
1 =私のコードである私は、カーソルが常に下cursor problemに表示され、これを実行すると、私はすぐ隣にカーソルをしたいですか?この行の最後に印を付けるが、それは常に下に留まる。
2)2番目の文「C++を学びたい」が完全に消去されず、C++ 2が消去され、javaが追加されます。何も、
p
タグがparagraphあるドキュメントの.Help リンク==(https://github.com/mattboldt/typed.js/blob/master/README.md)
たい完全に "コーディングを学びたいですか?" nd私はこのタイプの2つをタイプしたい "C + +を習得したい"次にC++を削除してJavaをその場所に追加し、Javaを削除してPythonをその場所に追加します。 ur ans –
Vこの行に固執する "C++/Java/Pythonを学びたい"。私はこの行を終了するとすぐにループを欲しがる "C++を学びたい" C++がJavaを消去して消去してからPythonを消して " 2番目の文に戻って –
@GEEkSpoTTed私はベストを尽くした、ちょうどこのようなものを作った:https://jsfiddle.net/Brownsugar/cncm5w0u/2/ – Lay