Skip to content

Commit

Permalink
Merge pull request #113 from PranavBarthwal/type
Browse files Browse the repository at this point in the history
added typed text in hero section
  • Loading branch information
apu52 authored Jan 21, 2024
2 parents b384acd + 8b62ddb commit 5790cb7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div class="header__content">
<div>
<p class="sub__header">Book Now</p>
<h1>Find Your Perfect Getaway<br />Discover the World's Best Kept Secrets</h1>
<h1>Find Your Perfect Getaway<br />Discover the World's Best Kept <span class="auto-typed" style="color: slateblue;"></span></h1>
<p class="section__subtitle">
Make your travel more enjoyable with us. We are the best travel
agency and we are providing the best travel services for our
Expand Down Expand Up @@ -435,6 +435,17 @@ <h4>Connect With Us</h4>
}
</script>

<!-- typing animation -->
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
<script>
var typed = new Typed(".auto-typed", {
strings : ["Wonders", "Gems", "Secrets"],
typeSpeed : 150,
backSpeed : 50,
loop : true
})
</script>

</body>
<script>
function replaceDivs() {
Expand Down

0 comments on commit 5790cb7

Please sign in to comment.