I have a fixed header with a large text. I would like the text to decrease in size as someone scrolls down, and return to its original size when the scroll is at the top.
The CSS applied when scrolling down should be:
font-size: 15px;
padding-left: 15%;
top: 10px;
You can view where I want the text to move and how it should look like here.
Here is my HTML:
<div class="bignadpis">
<p>Accounting and settlement <br> of healthcare in Svit</p>
</div>
And here's the CSS for it:
.bignadpis {
z-index: 10001;
font-family: 'Paytone One', sans-serif;
font-style: normal;
font-weight: normal;
font-size: 30px;
text-transform: uppercase;
position: fixed;
float: left;
padding-left: 5%;
}
Any advice would be greatly appreciated :)