Skip to content

Commit

Permalink
Merge pull request #326 from Shivam250702/main
Browse files Browse the repository at this point in the history
solved infinite typewriter effect problem
  • Loading branch information
Kritika30032002 authored Jan 5, 2024
2 parents 50ef995 + e391cbb commit d32ea6e
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,22 @@ <h2 style=" text-align: center" class="mt-5 animate__animated animate__fadeInUp
</script>
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
<script>
var typed = new Typed('#element', {
strings: ['To-Do List πŸ“', 'Organize tasks, boost daily productivity! πŸš€.', 'Achieve Your Goals One Task at a Time πŸ“ƒ', 'Plan, Act, Achieve: Get Started Now! πŸ˜‰..'],
typeSpeed: 50,
});
</script>
var strings = ['To-Do List πŸ“', 'Organize tasks, boost daily productivity! πŸš€.', 'Achieve Your Goals One Task at a Time πŸ“ƒ', 'Plan, Act, Achieve: Get Started Now! πŸ˜‰..'];

function startTypedAnimation() {
var typed = new Typed('#element', {
strings: strings,
typeSpeed: 50,
onComplete: function () {
typed.reset();
strings.push(strings.shift());
},
});
}

startTypedAnimation();
</script>


<!-- button to start adding tasks by voice -->
<button id="voice-command-button" title="Voice Command Format:
Expand Down

0 comments on commit d32ea6e

Please sign in to comment.