yapayzeka/public/assets/scss/default/_text-animation.scss

110 lines
1.7 KiB
SCSS
Raw Normal View History

2024-09-09 15:01:42 -07:00
// text blinking start form hear
.cd-intro {
margin: 4em auto;
}
@media only screen and (min-width: 768px) {
.cd-intro {
margin: 5em auto;
}
}
@media only screen and (min-width: 1170px) {
.cd-intro {
margin: 6em auto;
}
}
.cd-headline {
font-size: 3rem;
line-height: 1.2;
}
@media only screen and (min-width: 768px) {
.cd-headline {
font-size: 4.4rem;
font-weight: 300;
}
}
@media only screen and (min-width: 1170px) {
.cd-headline {
font-size: 48px;
}
}
@media only screen and (max-width: 768px) {
.cd-headline {
font-size: 40px;
}
}
@media only screen and (max-width: 479px) {
.cd-headline {
font-size: 26px;
}
}
.cd-words-wrapper {
display: inline-block;
position: relative;
text-align: left;
}
.cd-words-wrapper b {
display: inline-block;
position: absolute;
white-space: nowrap;
left: 0;
top: 0;
}
.cd-words-wrapper b.is-visible {
position: relative;
}
.no-js .cd-words-wrapper b {
opacity: 0;
}
.no-js .cd-words-wrapper b.is-visible {
opacity: 1;
}
/* --------------------------------
xclip
-------------------------------- */
.cd-headline.clip span {
display: inline-block;
padding: 0;
}
.cd-headline.clip .cd-words-wrapper {
overflow: hidden;
vertical-align: middle;
}
.cd-headline.clip .cd-words-wrapper::after {
content: '';
position: absolute;
top: 50%;
right: 0;
width: 2px;
height: 80%;
background-color: var(--color-primary);
transform: translateY(-50%);
}
.cd-headline.clip b {
opacity: 0;
}
.cd-headline.clip b.is-visible {
opacity: 1;
}