File size: 3,501 Bytes
0879a03 0d4d44f 3b85fd7 0d4d44f 3b85fd7 cb20bdc 0d4d44f b10c786 cb20bdc 0d4d44f b10c786 0d4d44f b10c786 0d4d44f cb20bdc 0d4d44f b10c786 0d4d44f b10c786 cb20bdc 0d4d44f cb20bdc 0d4d44f b10c786 cb20bdc 0d4d44f b10c786 0879a03 0d4d44f b10c786 0d4d44f cb20bdc 0d4d44f b10c786 0d4d44f b10c786 cb20bdc 0d4d44f cb20bdc 0d4d44f cb20bdc 0d4d44f cb20bdc b10c786 0d4d44f b10c786 0d4d44f b10c786 0d4d44f b10c786 0d4d44f b10c786 cb20bdc b10c786 0d4d44f b10c786 0d4d44f b10c786 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.hero-container {
position: relative;
width: 100%;
overflow: visible;
}
.hero-section {
display: flex;
flex-direction: column;
min-height: 30rem;
width: 100dvw;
position: relative;
border-radius: 12px;
animation: fadeIn 1s ease-in-out;
justify-content: center;
}
.hero-image {
position: absolute;
top: 0;
left: 0;
width: 100dvw;
height: 100dvh;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transition: opacity 1s ease-in-out; /* Smooth transition */
opacity: 0;
z-index: -1;
animation: hero-anim-landscape 15s infinite;
}
@keyframes hero-anim-portrait {
0% {
background-position: center;
background-size: 160% 140%;
}
25% {
background-position: top left;
background-size: 120% 100%;
}
50% {
background-position: bottom right;
background-size: 160% 140%;
}
75% {
background-position: top right;
background-size: 120% 100%;
}
100% {
background-position: center;
background-size: 160% 140%;
}
}
@keyframes hero-anim-landscape {
0% {
background-position: center;
background-size: 130% 150%;
}
25% {
background-position: top left;
background-size: 100% 120%;
}
50% {
background-position: bottom right;
background-size: 130% 150%;
}
75% {
background-position: top right;
background-size: 100% 120%;
}
100% {
background-position: center;
background-size: 130% 150%;
}
}
.hero-image.active {
opacity: 1;
}
.hero-text {
display: flex;
flex-direction: column;
color: white;
gap: 0.5rem;
text-align: left;
z-index: 1;
height: 100%;
margin-top: 30px;
margin-left: 20px;
width: 80%;
justify-content: space-around;
}
.hero-title {
color: white;
font-size: 7rem;
font-family: "Anton", sans-serif;
font-weight: 400;
font-style: normal;
line-height: 1;
transition: font-size 0.3s ease-in-out;
user-select: none;
width: auto;
}
.hero-section-play-button {
background-color: #1f202196;
padding: 10px;
width: 120px;
border-radius: 5px;
}
.hero-description {
color: white;
font-size: 1.2rem;
font-weight: normal;
line-height: 1.4;
overflow: hidden; /* Hide text overflow */
display: -webkit-box; /* Use flexbox layout */
-webkit-line-clamp: 3; /* Limit text to 3 lines */
-webkit-box-orient: vertical; /* Set box orientation to vertical */
text-overflow: ellipsis; /* Add ellipsis (...) */
transition: font-size 0.3s ease-in-out;
user-select: none;
}
.hero-indicators {
position: absolute;
bottom: 1rem;
left: 50%;
display: flex;
gap: 0.5rem;
}
.indicator {
width: 20px;
height: 10px;
border-radius: 5px;
background-color: gray;
cursor: pointer;
transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.indicator.active {
background-color: white;
transform: scale(1.2);
}
/* Responsive Styles */
@media (orientation:portrait){
.hero-image{
height: 85dvw;
width: 100dvw;
animation: hero-anim-portrait 15s infinite;
}
.hero-title {
color: white;
font-size: 2.5rem;
}
.hero-section {
min-height: 14rem;
}
.hero-description{
font-size: .9rem;
}
}
@media (orientation:landscape){
.hero-section{
height: 3.5rem;
}
.hero-text{
margin-top: 3rem;
margin-left: 4rem;
}
} |