This design may look very complicated because we will be using only HTML and CSS to achieve this look – but don’t be worried, this is actually a very easy to follow tutorial – most of the stuff that you will be doing is copy and paste code :}
HTML and CSS
If you plan to add this header to your homepage, make sure that you are working on your homepage. You can access your homepage design by logging into your SmugMug account → click CUSTOMIZE → CONTENT AND DESIGN and on the right side select HOMEPAGE:
Once you have selected homepage you will need to add a HTML content block to the top of your homepage.
In the HTML section of the HTML content block you will need to add this code:
<divclass="hero"><h1class="hero__headline">FULL SCREEN</br> SECTION</h1><!--Replace the FULL SCREEN text with your own header text ---></div><ahref="#content"><divid="mouse-scroll"><divclass="mouse"><divclass="mouse-in"></div></div><div><spanclass="down-arrow-1"></span><spanclass="down-arrow-2"></span><spanclass="down-arrow-3"></span></div></div></a>
Code language:HTML, XML(xml)
Just make sure that you don’t forget to replace the FULL SCREEN SECTION text with your own text. As you can see there is a </br> tag between FULL SCREEN and SECTION – this is to break line tag, which will allow the word SECTION to appear below FULL SCREEN.
Open the CSS section in the HTML content block and then add this code to it:
know the CSS is long – but the only thing that you need to change is the link to the image that you would like to use as your header image. Once you have done this there is only one last thing left – THE ANCHOR POINT – this is the section of your homepage where your visitor will scroll to, when they hit the scroll icon in the header.
I recommend placing it right below the full screen header.
Adding an Anchor Point
Adding an anchor point to your page is very easy – just add another HTML content block right below the header that you have just added to your page and then add this code to it:
Thanks so much for this! Two modifications I’ve been trying to do, unsuccessfully, is
1. Smooth scrolling down to the anchor instead of a direct jump.
2. Add a .png logo in place of the text(which I was able to do) that is scalable to mobile(The part I couldn’t do). It just stays the same size.