Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- background:#173b5b;}
- /** CSS By Austin (638877683) **/
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- }
- html,
- body {
- min-height: 100%;
- height: 100%;
- }
- .align-v-h, .container {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .container {
- flex-direction: column;
- height: 100%;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .note{
- position: fixed;
- right: 12px;
- bottom: 12px;
- font-size: 16px;
- color: #f2f2f2;
- font-family: 'Lato', sans-serif;
- font-weight: light;
- }
- .source a {
- color: inherit;
- font-weight: medium;
- }
- .wrap {
- position: relative;
- display: flex;
- flex-wrap: wrap;
- width: 240px;
- height: 520px;
- background-color: #153355;
- border-radius: 180px;
- box-shadow: 0px 20px 64px 0px rgba(9, 28, 49, 0.64);
- overflow: hidden;
- }
- .wrap .stars {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 60%;
- display: flex;
- flex-wrap: wrap;
- }
- .wrap .stars div {
- position: absolute;
- left: 100%;
- top: 0;
- width: 32px;
- height: 1px;
- background-color: #fff;
- border-radius: 50%;
- -webkit-animation-name: star-animation-2;
- animation-name: star-animation-2;
- -webkit-animation-duration: 3s;
- animation-duration: 3s;
- -webkit-animation-iteration-count: infinite;
- animation-iteration-count: infinite;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear;
- }
- .wrap .stars div:first-child {
- -webkit-transform: rotate(160deg) translateY(-128px);
- transform: rotate(160deg) translateY(-128px);
- -webkit-animation-delay: 4s;
- animation-delay: 4s;
- }
- .wrap .stars div:nth-child(2) {
- -webkit-transform: rotate(160deg) translateY(-18px);
- transform: rotate(160deg) translateY(-18px);
- -webkit-animation-delay: 2s;
- animation-delay: 2s;
- }
- .wrap .stars div:last-child {
- -webkit-transform: rotate(160deg) translateY(-200px);
- transform: rotate(160deg) translateY(-200px);
- -webkit-animation-delay: 3s;
- animation-delay: 3s;
- }
- .wrap .stars span {
- display: flex;
- align-items: center;
- position: relative;
- flex-basis: 100%;
- margin-bottom: 12px;
- }
- .wrap .stars span:before {
- content: '';
- width: 3px;
- height: 3px;
- border-radius: 50%;
- background-color: #fff;
- -webkit-animation-name: star-animation;
- animation-name: star-animation;
- -webkit-animation-iteration-count: infinite;
- animation-iteration-count: infinite;
- }
- .wrap .stars span:first-child {
- justify-content: flex-end;
- }
- .wrap .stars span:first-child:before {
- margin-right: 100px;
- -webkit-animation-duration: 1s;
- animation-duration: 1s;
- -webkit-animation-delay: .32s;
- animation-delay: .32s;
- }
- .wrap .stars span:nth-child(2) {
- justify-content: flex-end;
- }
- .wrap .stars span:nth-child(2):before {
- margin-right: 120px;
- -webkit-animation-duration: 2s;
- animation-duration: 2s;
- }
- .wrap .stars span:nth-child(3) {
- justify-content: flex-end;
- }
- .wrap .stars span:nth-child(3):before {
- margin-right: 66px;
- -webkit-animation-duration: 4s;
- animation-duration: 4s;
- -webkit-animation-delay: .16s;
- animation-delay: .16s;
- }
- .wrap .stars span:nth-child(4) {
- justify-content: flex-end;
- }
- .wrap .stars span:nth-child(4):before {
- margin-right: 40px;
- -webkit-animation-duration: 3s;
- animation-duration: 3s;
- -webkit-animation-delay: .32s;
- animation-delay: .32s;
- }
- .wrap .stars span:nth-child(5) {
- justify-content: flex-start;
- }
- .wrap .stars span:nth-child(5):before {
- margin-left: 40px;
- -webkit-animation-duration: 1s;
- animation-duration: 1s;
- -webkit-animation-delay: .32s;
- animation-delay: .32s;
- }
- .wrap .stars span:nth-child(6) {
- justify-content: flex-end;
- }
- .wrap .stars span:nth-child(6):before {
- margin-right: 100px;
- -webkit-animation-duration: 6s;
- animation-duration: 6s;
- -webkit-animation-delay: .12s;
- animation-delay: .12s;
- }
- .wrap .stars span:nth-child(7) {
- justify-content: flex-end;
- }
- .wrap .stars span:nth-child(7):before {
- margin-right: 40px;
- }
- .wrap .stars span:last-child:before {
- margin-left: 8px;
- -webkit-animation-duration: 3s;
- animation-duration: 3s;
- -webkit-animation-delay: .64s;
- animation-delay: .64s;
- }
- .wrap .moon {
- position: absolute;
- z-index: 10;
- top: calc(50px + 32px);
- left: calc(50px + 32px);
- width: 64px;
- height: 64px;
- border-radius: 50%;
- background-color: #F6F6F6;
- transform: translate(-50%,-50%);
- opacity: .9;
- transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow: 0px 0px 64px rgba(158, 230, 254, 0.6);
- }
- .wrap .moon:before, .wrap .moon:after {
- content: '';
- position: absolute;
- z-index: 2;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- }
- .wrap .moon:before {
- background-color: transparent;
- box-shadow: 0px 0px 0px 32px rgba(32, 94, 114, 0.4);
- }
- .wrap .moon:after {
- background-color: transparent;
- box-shadow: 0px 0px 0px 48px rgba(32, 94, 114, 0.2);
- }
- .wrap .moon:hover {
- padding: 445px;
- }
- .wrap .moon-info {
- opacity: 0;
- transition: all 1s linear;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-25%,-25%);
- width: 200px;
- z-index: 999;
- }
- .wrap .moon:hover .moon-info {
- opacity: 1;
- }
- .wrap .moon-shadow {
- position: absolute;
- z-index: 2;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- background-color: transparent;
- box-shadow: 0px 0px 0px 16px rgba(32, 94, 114, 0.6);
- }
- .wrap .mountains {
- position: absolute;
- z-index: 3;
- width: 0;
- height: 0;
- bottom: 20%;
- left: -100px;
- opacity: 0.6;
- border-left: 180px solid transparent;
- border-right: 180px solid transparent;
- border-bottom: 180px solid #124869;
- -webkit-transform: rotate(4deg);
- transform: rotate(4deg);
- }
- .wrap .mountains div {
- position: absolute;
- z-index: 4;
- top: 128px;
- left: -140px;
- width: 0;
- height: 0;
- opacity: 1;
- border-left: 120px solid transparent;
- border-right: 120px solid transparent;
- border-bottom: 120px solid #104261;
- -webkit-transform: rotate(4deg) scale(2);
- transform: rotate(4deg) scale(2);
- }
- .wrap .mountains:before, .wrap .mountains:after {
- content: '';
- position: absolute;
- width: 0;
- height: 0;
- opacity: 0.6;
- }
- .wrap .mountains:before {
- border-left: 125px solid transparent;
- border-right: 125px solid transparent;
- border-bottom: 125px solid #124869;
- top: 32px;
- left: -20px;
- }
- .wrap .mountains:after {
- border-left: 100px solid transparent;
- border-right: 100px solid transparent;
- border-bottom: 100px solid #124869;
- top: 80px;
- left: 80px;
- }
- .wrap .windmill {
- position: relative;
- z-index: 6;
- width: 100%;
- height: 104px;
- align-self: flex-end;
- margin-top: 301px;
- }
- .wrap .windmill .item {
- margin-left: auto;
- margin-right: 44px;
- width: 64px;
- height: 100%;
- border-radius: 64px 64px 0 0;
- background-color: #101522;
- }
- .wrap .windmill .item-top {
- position: relative;
- width: 16px;
- height: 16px;
- background-color: inherit;
- border-radius: 50%;
- margin-left: auto;
- margin-right: auto;
- }
- .wrap .windmill .item-top div {
- position: absolute;
- z-index: 1;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: transparent;
- -webkit-animation-name: rotate;
- animation-name: rotate;
- -webkit-animation-duration: 6s;
- animation-duration: 6s;
- -webkit-animation-iteration-count: infinite;
- animation-iteration-count: infinite;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear;
- }
- .wrap .windmill .item-top div:before, .wrap .windmill .item-top div:after {
- content: '';
- position: absolute;
- width: 8px;
- height: 48px;
- background-color: #101522;
- border-radius: 12px;
- }
- .wrap .windmill .item-top div:first-child:before {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg);
- bottom: 50%;
- margin-bottom: 2px;
- right: 50%;
- margin-right: 20px;
- }
- .wrap .windmill .item-top div:first-child:after {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg);
- top: 50%;
- margin-top: 2px;
- left: 50%;
- margin-left: 20px;
- }
- .wrap .windmill .item-top div:last-child:before {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- bottom: 50%;
- margin-bottom: 2px;
- left: 50%;
- margin-left: 20px;
- }
- .wrap .windmill .item-top div:last-child:after {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- top: 50%;
- margin-top: 2px;
- right: 50%;
- margin-right: 20px;
- }
- .wrap .windmill .item-bottom {
- display: flex;
- flex-direction: column;
- height: calc(100% - 24px);
- justify-content: space-between;
- align-items: center;
- }
- .wrap .windmill .item-bottom div:first-child {
- width: 8px;
- height: 12px;
- border-radius: 8px 8px 0 0;
- background-color: #2f6379;
- box-shadow: 0px 0px 24px rgba(158, 230, 254, 0.4);
- }
- .wrap .windmill .item-bottom div:last-child {
- width: 16px;
- height: 8px;
- -webkit-transform: translateY(4px);
- transform: translateY(4px);
- border-radius: 12px 12px 0 0;
- background-color: #2f6379;
- }
- .wrap-footer {
- position: relative;
- z-index: 4;
- align-self: flex-end;
- -webkit-transform: rotate(4deg) scale(1.2);
- transform: rotate(4deg) scale(1.2);
- width: 100%;
- height: 20%;
- background-color: #101522;
- }
- @media screen and (max-width: 400px) {
- .wrap {
- -webkit-transform: scale(0.64);
- transform: scale(0.64);
- }
- }
- @-webkit-keyframes star-animation {
- 0% {
- opacity: 0;
- }
- 50% {
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- }
- @keyframes star-animation {
- 0% {
- opacity: 0;
- }
- 50% {
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- }
- @-webkit-keyframes rotate {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes rotate {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @-webkit-keyframes star-animation-2 {
- 0% {
- left: 100%;
- top: 0;
- width: 32px;
- }
- 10% {
- width: 24px;
- }
- 30% {
- left: -100%;
- top: 220px;
- width: 32px;
- }
- 100% {
- left: -100%;
- top: 220px;
- width: 32px;
- }
- }
- @keyframes star-animation-2 {
- 0% {
- left: 100%;
- top: 0;
- width: 32px;
- }
- 10% {
- width: 24px;
- }
- 30% {
- left: -100%;
- top: 220px;
- width: 32px;
- }
- 100% {
- left: -100%;
- top: 220px;
- width: 32px;
- }
- }
- iframe {position: absolute;top:-500px;
- [youtube:500:500:tD_yFYZeMN0:autoplay=1&playlist=tD_yFYZeMN0&loop=1]
- [font:Lato]
- <div class="container">
- <div class="wrap">
- <div class="moon">
- <div class="moon-shadow"></div>
- </div>
- <div class="mountains">
- <div></div>
- </div>
- <div class="stars">
- <div></div>
- <div></div>
- <div></div>
- </div>
- <div class="stars"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>
- <div class="windmill">
- <div class="item">
- <div class="item-top">
- <div></div>
- <div></div>
- </div>
- <div class="item-bottom">
- <div></div>
- <div></div>
- </div>
- </div>
- </div>
- <div class="wrap-footer"></div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment