Skip to content

Commit

Permalink
(index.html) Line 295: Added another class called "slide-right".
Browse files Browse the repository at this point in the history
(style.css) LIne 490-509: Added animation to the block of text that goes from left to right as to improve the user interface.
  • Loading branch information
turtlespeedv committed Oct 10, 2024
1 parent 0307104 commit 12993b8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,12 @@
<main>
<section class="hero" id="home">
<div class="header2"><h1>Travel Beyond Limits</h1></div>
<h3>
<div class="slide-right">
<h3>
Connect, Explore, and Discover Together. <br />
BuddyTrail: Your Journey Begins with the Perfect Travel Companion.
</h3>
</div>
<a href="book.html" id="btn">Book now</a>
</section>

Expand Down
20 changes: 20 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,26 @@ nav {
letter-spacing: 0.7px;
padding: 5rem;
}
.slide-right {
width: 100%;
overflow: hidden;
max-width: 500px
}

.slide-right h3 {
animation: 3s slide-right;
animation-delay: 3s;
}

@keyframes slide-right {
from {
margin-left: -500px;
}

to {
margin-left: 0%;
}
}


/* Section Styles */
Expand Down

0 comments on commit 12993b8

Please sign in to comment.