Witam, mam oto taki kod
.header {
width: 100%;
height: 900px;
background: url('../images/header.png');
background-size: cover;
background-position: center;
background-repeat: repeat-y;
margin-bottom: 100px;
position: relative;
background-attachment: fixed;
z-index: -1;
&::before {
content: '';
position: absolute;
width: 100%;
height: 900px;
top: 0;
left: 0;
background: url('../images/header-dashes.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: 1;
}
&::after {
content: '';
position: absolute;
width: 100%;
height: 900px;
top: 0;
left: 0;
background: url('../images/header-shapes.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: 1;
}
}
Potrzebuję zrobić takie coś, żeby każdy z tych elementów tj. główny obrazek oraz before i after mialy attachment oraz ruszały się z różnymi prędkościami no i były smooth tj. płynne, ktoś jakiś pomysł, dam radę zrobić to samym css'em?
Chcę zrobić coś w stylu:
https://themes.muffingroup.com/be/dj2/