Один из способов сделать это - поместить все элементы заголовка, кроме "base-element", за пределы элемента header-image.
HTML:
<div class="header-title">Header</div>
<div class="header-paragraph">Test test test test</div>
<div class="social-icons">
<a href=""><i class="fa fa-facebook-square fa-2x" style="margin-right: 50px;"></i></a>
<a href=""><i class="fa fa-twitter fa-2x" style="margin-right: 50px;"></i></a>
<a href=""><i class="fa fa-instagram fa-2x" style="margin-right: 50px;"></i></a>
</div>
<div class="topnav" id="myTopnav">
<a href="" class="active">Test</a>
<a href="">Test</a>
<a href="">Test</a>
<a href="">Test</a>
<a href="">Test</a>
<a href="">Test</a>
<a href="">Test</a>
</div>
<div class="header-image">
<div class="base-element">
</div>
</div>
CSS:
.header-image
{
background-image: url('https://i.imgur.com/im70gOL.png');
background-repeat: no-repeat;
background-size: 100%;
overflow: hidden;
overflow-y: hidden;
background-attachment: fixed;
width: 100%;
height: 550px;
}
.base-element
{
background-image: url('https://i.imgur.com/i6Lreuj.png');
background-repeat: no-repeat;
background-size: 100%;
overflow: hidden;
overflow-y: hidden;
background-attachment: fixed;
animation: rotation 3s infinite linear;
width: 100%;
height: 100%;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
.header-paragraph
{
position: absolute;
color: #ffffff;
font-size: calc(9.8px + (26 - 18) * ((100vw - 300px) / (1600 - 300)));
width:100%;
padding-top: 21%;
text-align:center;
}
.header-title
{
position: absolute;
color: #ffffff;
font-family: sansa_bold;
font-size: calc(32px + (120 - 20) * ((100vw - 300px) / (1600 - 300)));
width:100%;
padding-top: 10%;
text-align:center;
}
.topnav
{
display: flex;
list-style-type: none;
padding-left: 20%;
padding-top: 1.8%;
background-color: #33333300;
margin-bottom: 25%;
z-index: 100;
position: absolute;
}
.topnav a
{
color: #f2f2f2;
text-align: center;
padding: 1% 1.5%;
text-decoration: none;
font-size: calc(6px + (26 - 18) * ((100vw - 300px) / (1600 - 300)));
line-height: calc(0.5em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
display: flex;
opacity: 60%;
-webkit-opacity: 0.6;
-moz-opacity: 0.6;
transition: opacity .2s ease-in-out;
-moz-transition: opacity .2s ease-in-out;
-webkit-transition: opacity .2s ease-in-out;
z-index: 100;
}
.topnav a:hover
{
color: #ffffff;
text-decoration: none;
border-bottom: white solid 4px;
opacity: 1;
-webkit-opacity: 1;
-moz-opacity: 1;
}
.topnav a.active
{
z-index: 3;
color: #ffffff;
border-bottom: white solid 4px;
opacity: 1;
-webkit-opacity: 1;
-moz-opacity: 1;
}
.topnav .icon
{
display: none;
position: absolute;
}
Здесь - это правка вашего кодового маркера.
РЕДАКТИРОВАТЬ: Размещена неверная ссылка на ручке.