Skip to content

Commit

Permalink
Merge pull request #987 from AnushkaChouhan25/tempbranch
Browse files Browse the repository at this point in the history
Update Scrollup button #919
  • Loading branch information
ANSHIKA-26 authored Oct 15, 2024
2 parents 077d3de + 9c062a2 commit 8c3e272
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,11 @@ <h2>Subscribe to Our Newsletter</h2>


</main>
<button id="backToTop">⬆️</button>
<!-- <button id="backToTop">⬆️</button> -->
<div id="backToTop" title="Back to Top">
<i class="fas fa-arrow-up"></i>
</div>

<!--mainn-->
<!-- footer -->
<footer id="footer">
Expand Down
25 changes: 21 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -475,18 +475,35 @@ body.dark-mode footer .phone{
[data-theme="dark"] .close-icon{
background: var(--light);
}

#backToTop {
position: fixed;
bottom: 30px;
right: 10px;
font-size: 50px;
width: 60px;
height: 60px;
font-size: 30px; /* Adjust icon size */
cursor: pointer;
text-align: center;
background-color: transparent;
background-color: var(--primary-color); /* Dark Pink */
color: var(--light); /* Light text color */
border-radius: 50%; /* Make it round */
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for depth */
transition: all 0.3s ease-in-out; /* Smooth transition */
z-index: 1000;

}

#backToTop:hover {
background-color: var(--dark); /* Dark background on hover */
color: var(--primary-color); /* Pink text color on hover */
transform: scale(1.1); /* Slight zoom effect */
box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2); /* More shadow on hover */
}

#backToTop i {
line-height: 60px; /* Center icon vertically */
font-size: 24px; /* Adjust icon size */
}

.heart-container {
display: flex;
justify-content: center;
Expand Down

0 comments on commit 8c3e272

Please sign in to comment.