mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
126 lines
2.3 KiB
HTML
126 lines
2.3 KiB
HTML
<div class="container">
|
|
<div class="content">
|
|
<div class="content__container">
|
|
<p class="content__container__text">
|
|
Hello
|
|
</p>
|
|
|
|
<ul class="content__container__list">
|
|
<li class="content__container__list__item">world !</li>
|
|
<li class="content__container__list__item">coder !</li>
|
|
<li class="content__container__list__item">users !</li>
|
|
<li class="content__container__list__item">uiverse</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by JkHuger - Tags: animation, loader, text */
|
|
.container {
|
|
width: 307px;
|
|
height: 50px;
|
|
}
|
|
|
|
.content {
|
|
display: block;
|
|
position: sticky;
|
|
overflow: hidden;
|
|
font-family: 'Lato', sans-serif;
|
|
font-size: 35px;
|
|
line-height: 40px;
|
|
color: #ecf0f1;
|
|
}
|
|
|
|
.content__container {
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
height: 40px;
|
|
padding: 0 40px;
|
|
}
|
|
|
|
.content__container:before {
|
|
content: '[';
|
|
left: 0;
|
|
}
|
|
|
|
.content__container:after {
|
|
content: ']';
|
|
position: absolute;
|
|
right: 0;
|
|
}
|
|
|
|
.content__container:after, .content__container:before {
|
|
position: absolute;
|
|
top: -2px;
|
|
color: #16a085;
|
|
font-size: 42px;
|
|
line-height: 40px;
|
|
-webkit-animation-name: opacity;
|
|
-webkit-animation-duration: 2s;
|
|
-webkit-animation-iteration-count: infinite;
|
|
animation-name: opacity;
|
|
animation-duration: 2s;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
.content__container__text {
|
|
display: inline;
|
|
float: left;
|
|
margin: 0;
|
|
}
|
|
|
|
.content__container__list {
|
|
margin-top: 0;
|
|
padding-left: 110px;
|
|
text-align: left;
|
|
list-style: none;
|
|
-webkit-animation-name: change;
|
|
-webkit-animation-duration: 10s;
|
|
-webkit-animation-iteration-count: infinite;
|
|
animation-name: change;
|
|
animation-duration: 10s;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
.content__container__list__item {
|
|
line-height: 40px;
|
|
margin: 0;
|
|
}
|
|
|
|
@keyframes opacity {
|
|
0%, 100% {
|
|
opacity: 0;
|
|
}
|
|
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes change {
|
|
0%, 12.66%, 100% {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
16.66%, 29.32% {
|
|
transform: translate3d(0, -25%, 0);
|
|
}
|
|
|
|
33.32%, 45.98% {
|
|
transform: translate3d(0, -50%, 0);
|
|
}
|
|
|
|
49.98%, 62.64% {
|
|
transform: translate3d(0, -75%, 0);
|
|
}
|
|
|
|
66.64%, 79.3% {
|
|
transform: translate3d(0, -50%, 0);
|
|
}
|
|
|
|
83.3%, 95.96% {
|
|
transform: translate3d(0, -25%, 0);
|
|
}
|
|
}
|
|
|
|
</style>
|