-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from Shivam250702/main
solved infinite typewriter effect problem
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|