Hi,
ich verzweifle, weil typed.js einfach einen Text nicht animiert tippt und ich nicht verstehe warum.
Code
<body>
<div id="typed-strings">
<p>Typed.js is a <strong>JavaScript</strong> library.</p>
<p>It <em>types</em> out sentences.</p>
</div>
<span id="typed"></span>
<script type="text/javascript" src="{{url_for('static', filename='jquery.js') }}"></script>
<script type="text/javascript" src="{{url_for('static', filename='typed.js') }}"></script>
<script src="https://kit.fontawesome.com/xxxxx.js"></script>
<script type=text/javascript src="{{url_for('static', filename='javascript.js')}}"></script>
<script>
var typed = new Typed('.typed', {
stringsElement: '.typed-strings'
});
</script>
</body>
Alles anzeigen
javascript.js:
Code
$(document).ready(function(){
$('#icon').click(function(){
$('ul').toggleClass('show');
$("i", this).toggleClass("fas fa-times fas fa-bar");
});
});
Die javascript.js funktioniert.
Warum wird der Text nicht animiert? Hat das was mit jQuery zu tun? Der Text wird angezeigt, aber es wird nichts animiert...
LG und Danke