File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,8 +126,11 @@ <h1 class="abeezee-regular">Benefits of HelpOps-Hub
126126 </ div >
127127 </ div >
128128 </ div >
129- < div id ="scrollToTopBtn " class ="scrollToTopBtn " onclick ="scrollToTop() "> < img src ="scrollToTop.png "> </ div >
130- < script src ="app.js "> </ script >
129+ < div id ="scrollToTopBtn " class ="scrollToTopBtn " onclick ="scrollToTop() ">
130+ < img src ="scrollToTop.png " alt ="Scroll to top ">
131+ </ div >
132+ < script src ="app.js "> </ script >
133+
131134
132135
133136</ body >
Original file line number Diff line number Diff line change @@ -816,4 +816,32 @@ body.dark-mode {
816816 background-color : # 333333 ;
817817 color : # ffffff ;
818818 box-shadow : 5px 5px 20px # ffffff ;
819- }
819+ }
820+
821+ /* Scroll to top */
822+
823+ .scrollToTopBtn {
824+ position : fixed;
825+ bottom : 20px ;
826+ right : 20px ;
827+ width : 40px ;
828+ height : 40px ;
829+ display : block;
830+ justify-content : center;
831+ align-items : center;
832+ background-color : rgba (0 , 115 , 160 , 0.5 );
833+ border-radius : 50% ;
834+ cursor : pointer;
835+ transition : background-color 0.3s ;
836+ padding : 10px ;
837+ }
838+
839+ .scrollToTopBtn img {
840+ width : 100% ;
841+ height : 100% ;
842+ object-fit : cover;
843+ }
844+
845+ .scrollToTopBtn : hover {
846+ background-color : rgba (0 , 0 , 0 , 0.8 );
847+ }
You can’t perform that action at this time.
0 commit comments