mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
195 lines
5.9 KiB
HTML
195 lines
5.9 KiB
HTML
<div class="notification">
|
|
<span class="star star1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffa710" d="m22 9.8c0 .2-.104.4-.312.6l-4.363 4.2 1.033 6.1c.008 0 .012.1.012.2 0 .2-.044.3-.132.4-.08.1-.2.2-.361.2-.152 0-.312 0-.48-.1l-5.397-2.9-5.397 2.9c-.176.1-.336.1-.48.1-.169 0-.297-.1-.385-.2-.08-.1-.12-.2-.12-.4 0 0 .008-.1.024-.2l1.033-6.1-4.375-4.2c-.2-.2-.3-.4-.3-.6 0-.3.224-.5.673-.5l6.034-.9 2.704-5.5c.152-.3.349-.5.589-.5s.437.2.589.5l2.704 5.5 6.034.9c.449 0 .673.2.673.5"></path><path fill="#fdd921" d="m22 8.8c0 .2-.104.4-.312.6l-4.363 4.2 1.033 6.1c.008 0 .012.1.012.2 0 .2-.044.3-.132.4-.08.1-.2.2-.361.2-.152 0-.312 0-.48-.1l-5.397-2.9-5.397 2.9c-.176.1-.336.1-.48.1-.169 0-.297-.1-.385-.2-.08-.1-.12-.2-.12-.4 0 0 .008-.1.024-.2l1.033-6.1-4.375-4.2c-.2-.2-.3-.4-.3-.6 0-.3.224-.5.673-.5l6.034-.9 2.704-5.5c.152-.3.349-.5.589-.5s.437.2.589.5l2.704 5.5 6.034.9c.449 0 .673.2.673.5"></path></svg></span>
|
|
<span class="star star2"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffa710" d="m22 9.8c0 .2-.104.4-.312.6l-4.363 4.2 1.033 6.1c.008 0 .012.1.012.2 0 .2-.044.3-.132.4-.08.1-.2.2-.361.2-.152 0-.312 0-.48-.1l-5.397-2.9-5.397 2.9c-.176.1-.336.1-.48.1-.169 0-.297-.1-.385-.2-.08-.1-.12-.2-.12-.4 0 0 .008-.1.024-.2l1.033-6.1-4.375-4.2c-.2-.2-.3-.4-.3-.6 0-.3.224-.5.673-.5l6.034-.9 2.704-5.5c.152-.3.349-.5.589-.5s.437.2.589.5l2.704 5.5 6.034.9c.449 0 .673.2.673.5"></path><path fill="#fdd921" d="m22 8.8c0 .2-.104.4-.312.6l-4.363 4.2 1.033 6.1c.008 0 .012.1.012.2 0 .2-.044.3-.132.4-.08.1-.2.2-.361.2-.152 0-.312 0-.48-.1l-5.397-2.9-5.397 2.9c-.176.1-.336.1-.48.1-.169 0-.297-.1-.385-.2-.08-.1-.12-.2-.12-.4 0 0 .008-.1.024-.2l1.033-6.1-4.375-4.2c-.2-.2-.3-.4-.3-.6 0-.3.224-.5.673-.5l6.034-.9 2.704-5.5c.152-.3.349-.5.589-.5s.437.2.589.5l2.704 5.5 6.034.9c.449 0 .673.2.673.5"></path></svg></span>
|
|
<span class="star star3"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffa710" d="m22 9.8c0 .2-.104.4-.312.6l-4.363 4.2 1.033 6.1c.008 0 .012.1.012.2 0 .2-.044.3-.132.4-.08.1-.2.2-.361.2-.152 0-.312 0-.48-.1l-5.397-2.9-5.397 2.9c-.176.1-.336.1-.48.1-.169 0-.297-.1-.385-.2-.08-.1-.12-.2-.12-.4 0 0 .008-.1.024-.2l1.033-6.1-4.375-4.2c-.2-.2-.3-.4-.3-.6 0-.3.224-.5.673-.5l6.034-.9 2.704-5.5c.152-.3.349-.5.589-.5s.437.2.589.5l2.704 5.5 6.034.9c.449 0 .673.2.673.5"></path><path fill="#fdd921" d="m22 8.8c0 .2-.104.4-.312.6l-4.363 4.2 1.033 6.1c.008 0 .012.1.012.2 0 .2-.044.3-.132.4-.08.1-.2.2-.361.2-.152 0-.312 0-.48-.1l-5.397-2.9-5.397 2.9c-.176.1-.336.1-.48.1-.169 0-.297-.1-.385-.2-.08-.1-.12-.2-.12-.4 0 0 .008-.1.024-.2l1.033-6.1-4.375-4.2c-.2-.2-.3-.4-.3-.6 0-.3.224-.5.673-.5l6.034-.9 2.704-5.5c.152-.3.349-.5.589-.5s.437.2.589.5l2.704 5.5 6.034.9c.449 0 .673.2.673.5"></path></svg></span>
|
|
<div class="ribbon">
|
|
<div class="ribbon-content">Level up!</div>
|
|
<div class="start"> press start</div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by andrew-demchenk0 - Tags: notification */
|
|
.notification {
|
|
position: relative;
|
|
font-family: "Lucida Console", "Courier New", monospace;
|
|
font-weight: 900;
|
|
letter-spacing: 5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.start {
|
|
font-size: 20px;
|
|
letter-spacing: 3px;
|
|
text-shadow: 1px 1px 0 #000,
|
|
-1px -1px 0 #000,
|
|
1px -1px 0 #000,
|
|
-1px 1px 0 #000;
|
|
animation: animate4 5s forwards infinite ease-in-out;
|
|
}
|
|
|
|
.ribbon-content {
|
|
font-size: 35px;
|
|
text-shadow: 1.5px 1.5px 0 #680638,
|
|
-1.5px -1.5px 0 #680638,
|
|
1.5px -1.5px 0 #680638,
|
|
-1.5px 1.5px 0 #680638;
|
|
}
|
|
|
|
.ribbon {
|
|
position: relative;
|
|
width: 300px;
|
|
height: 50px;
|
|
line-height: 50px;
|
|
background-color: #CC014D;
|
|
color: #fff;
|
|
text-align: center;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.ribbon::before, .ribbon::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 20px;
|
|
border: 25px solid #DB0F5A;
|
|
z-index: -1;
|
|
}
|
|
|
|
.ribbon::before {
|
|
left: -30px;
|
|
border-left-color: transparent;
|
|
}
|
|
|
|
.ribbon::after {
|
|
right: -30px;
|
|
border-right-color: transparent;
|
|
}
|
|
|
|
.ribbon .ribbon-content:before, .ribbon .ribbon-content:after {
|
|
content: '';
|
|
position: absolute;
|
|
border-style: solid;
|
|
bottom: -20px;
|
|
}
|
|
|
|
.ribbon .ribbon-content:before {
|
|
left: 0;
|
|
border-width: 0 20px 20px 0;
|
|
border-color: transparent #6B043A transparent transparent;
|
|
}
|
|
|
|
.ribbon .ribbon-content:after {
|
|
right: 0;
|
|
border-width: 20px 20px 0 0;
|
|
border-color: #6B043A transparent transparent transparent;
|
|
}
|
|
|
|
.star svg {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.star {
|
|
position: absolute;
|
|
}
|
|
|
|
.star1 {
|
|
top: -85px;
|
|
left: 0;
|
|
transform: rotate(-15deg);
|
|
animation: animate1 5s forwards infinite ease-in-out;
|
|
}
|
|
|
|
.star2 {
|
|
top: -100px;
|
|
left: 50%;
|
|
transform: translate(-50%);
|
|
animation: animate2 5s forwards infinite ease-in-out;
|
|
}
|
|
|
|
.star3 {
|
|
top: -85px;
|
|
left: 100%;
|
|
transform: translateX(-100%) rotate(15deg);
|
|
animation: animate3 5s forwards infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes animate1 {
|
|
0% {
|
|
transform: rotate(-15deg) translateY(0);
|
|
}
|
|
|
|
25% {
|
|
transform: rotate(-15deg) translateY(10px);
|
|
}
|
|
|
|
50% {
|
|
transform: rotate(-15deg) translateY(0px);
|
|
}
|
|
|
|
75% {
|
|
transform: rotate(-5deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(-15deg);
|
|
}
|
|
}
|
|
|
|
@keyframes animate3 {
|
|
0% {
|
|
transform: translateX(-100%) translateY(0) rotate(15deg);
|
|
}
|
|
|
|
25% {
|
|
transform: translateX(-100%) translateY(10px) rotate(15deg);
|
|
}
|
|
|
|
50% {
|
|
transform: translateX(-100%) translateY(0) rotate(15deg);
|
|
}
|
|
|
|
75% {
|
|
transform: translateX(-100%) rotate(5deg);
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(-100%) rotate(15deg);
|
|
}
|
|
}
|
|
|
|
@keyframes animate2 {
|
|
0% {
|
|
transform: translate(-50%) translateY(0);
|
|
}
|
|
|
|
25% {
|
|
transform: translate(-50%) translateY(10px);
|
|
}
|
|
|
|
50% {
|
|
transform: translate(-50%) translateY(0px) scale(1);
|
|
}
|
|
|
|
75% {
|
|
transform: translate(-50%) scale(1.1);
|
|
}
|
|
|
|
100% {
|
|
transform: translate(-50%) scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes animate4 {
|
|
50% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
75% {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
</style>
|