CSS
语言:
CSSSCSS
确定
*,
*:after,
*:before {
margin: 0;
padding: 0;
}
body {
overflow: hidden;
background: radial-gradient(#000 16%, transparent 17%), radial-gradient(#444 16%, transparent 17%) 0px 1px, radial-gradient(#000 16%, transparent 17%) 8px 8px, radial-gradient(#444 16%, transparent 17%) 8px 9px;
background-color: #282828;
background-size: 16px 16px;
}
h2 {
font-size: 24pt;
}
p {
font-size: 12pt;
margin-bottom: 12pt;
}
a {
-webkit-transition: color 0.25s ease-in-out;
transition: color 0.25s ease-in-out;
font-family: "Roboto Condensed", Helvetica, sans-serif;
text-transform: uppercase;
text-decoration: none;
color: #dff3fd;
}
a:visited {
color: #dff3fd;
}
li.active a,
a:hover,
a:active {
color: #e5e5e5;
}
.centered {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
}
.centered-y {
position: absolute;
width: 100%;
margin: 0 auto;
text-align: center;
top: 50%;
left: 50%;
-webkit-transform: translateY(-50%);
}
.map-box {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
overflow: hidden;
height: 400px;
width: 400px;
background-color: #222;
background: url(/assets/landing.jpg) 0 0 repeat-x;
backround-size: 1065px, 525px;
border: 1px solid #57c1e8;
box-sizing: border-box;
}
.map-box .map-point {
cursor: pointer;
outline: none;
z-index: 0;
position: absolute;
width: 40px;
height: 40px;
border-radius: 20px;
opacity: 0;
-webkit-transform: translate(-50%, -50%);
-webkit-transition: opacity 0.25s ease-in-out 0.25s, width 0.25s ease-in-out 0.25s, height 0.25s ease-in-out 0.25s, z-index 0.25s ease-in-out 0.25s;
-webkit-transition-delay: 2s;
background: rgba(26, 26, 26, 0.9);
border: 5px solid #57c1e8;
}
.map-point.active {
opacity: 1;
}
.map-box .map-point .content {
opacity: 0;
-webkit-transition: opacity 0.25s ease-in-out;
width: 100%;
height: 100%;
left: 50%;
-webkit-transform: translateX(-50%);
overflow: overlay;
}
.map-box .map-point:active,
.map-box .map-point:focus {
margin: -155px 0 0 -20px;
width: 300px;
height: 220px;
color: #e5e5e5;
z-index: 1;
-webkit-transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out, height 0.25s ease-in-out;
}
.map-box .map-point:active .content,
.map-box .map-point:focus .content {
opacity: 1;
overflow: hidden;
-webkit-transition: opacity 0.25s ease-in-out 0.25s, height 0.25s ease-in-out, overflow 0.25s ease-in-out;
}
.map-box .map-point:active .content a:hover,
.map-box .map-point:active .content a:active,
.map-box .map-point:focus .content a:hover,
.map-box .map-point:focus .content a:active {
color: #afe1fa;
}
#cube {
position: absolute;
height: 55px;
width: 55px;
margin: -27.5px 0 0 0px;
top: 50%;
left: 50%;
z-index: 5;
overflow: visible;
-webkit-transition: height 1s ease, width 1s ease, margin 1s ease;
pointer-events: none;
}
#cube.animate {
height: 100px;
width: 100px;
margin: -50px 0 0 -23px;
-webkit-transition: height 1s ease, width 1s ease, margin 1s ease;
}
#cube.animate.shrink {
height: 75px;
width: 75px;
margin: -38.75px 0 0 -11.5px;
-webkit-transition: height 1s ease, width 1s ease, margin 1s ease;
}
.circle1.animate,
.circle2.animate,
.circle3.animate,
.circle4.animate {
height: 90px;
width: 90px;
-webkit-transition: all 1s ease;
}
.circle1.animate.expand {
height: 100px;
width: 100px;
margin: -20px 0 0 -20px;
-webkit-transition: all 1s ease;
}
.circle2.animate.expand {
height: 100px;
width: 100px;
margin: -20px 0 0 -5px;
-webkit-transition: all 1s ease;
}
.circle3.animate.expand {
height: 100px;
width: 100px;
margin: -5px 0 0 -5px;
-webkit-transition: all 1s ease;
}
.circle4.animate.expand {
height: 100px;
width: 100px;
margin: -5px 0 0 -20px;
-webkit-transition: all 1s ease;
}
.cubes1,
.cubes2,
.cubes3,
.cubes4 {
position: absolute;
margin: auto;
height: 25px;
width: 25px;
box-sizing: border-box;
}
.circle1,
.circle2,
.circle3,
.circle4 {
position: absolute;
margin: 5px;
height: 45px;
width: 45px;
border-radius: 50%;
}
.circle1 {
-webkit-transform: rotate(-45deg);
border-left: 5px solid rgba(87, 193, 232, 0);
border-right: 5px solid rgba(87, 193, 232, 0);
border-top: 5px solid #57c1e8;
border-bottom: 5px solid rgba(87, 193, 232, 0);
box-sizing: border-box;
}
.circle2 {
-webkit-transform: rotate(45deg);
border-left: 5px solid rgba(87, 193, 232, 0);
border-right: 5px solid rgba(87, 193, 232, 0);
border-top: 5px solid #57c1e8;
border-bottom: 5px solid rgba(87, 193, 232, 0);
box-sizing: border-box;
}
.circle3 {
-webkit-transform: rotate(45deg);
border-left: 5px solid rgba(87, 193, 232, 0);
border-right: 5px solid #57c1e8;
border-top: 5px solid rgba(87, 193, 232, 0);
border-bottom: 5px solid rgba(87, 193, 232, 0);
box-sizing: border-box;
}
.circle4 {
-webkit-transform: rotate(45deg);
border-left: 5px solid rgba(87, 193, 232, 0);
border-right: 5px solid rgba(87, 193, 232, 0);
border-top: 5px solid rgba(87, 193, 232, 0);
border-bottom: 5px solid #57c1e8;
box-sizing: border-box;
}
.cubes1 {
top: 0;
left: 0;
border-top: 5px solid #57c1e8;
border-left: 5px solid #57c1e8;
}
.cubes2 {
top: 0;
right: 0;
border-top: 5px solid #57c1e8;
border-right: 5px solid #57c1e8;
}
.cubes3 {
bottom: 0;
left: 0;
border-bottom: 5px solid #57c1e8;
border-left: 5px solid #57c1e8;
}
.cubes4 {
bottom: 0;
right: 0;
border-bottom: 5px solid #57c1e8;
border-right: 5px solid #57c1e8;
}
.line1 {
position: absolute;
top: 0;
left: 50%;
margin: -420px 0 0 -2.5px;
width: 5px;
height: 425px;
background-color: #57c1e8;
}
.line2 {
position: absolute;
bottom: 0;
left: 50%;
width: 5px;
margin: 0 0 -420px -2.5px;
height: 425px;
background-color: #57c1e8;
}
.line3 {
position: absolute;
top: 50%;
left: 0%;
width: 425px;
margin: -2.5px 0 0 -420px;
height: 5px;
background-color: #57c1e8;
}
.line4 {
position: absolute;
top: 50%;
right: 0%;
width: 425px;
margin: -2.5px -420px 0 0;
height: 5px;
background-color: #57c1e8;
}
#H {
position: absolute;
top: 50%;
margin-top: -2.5px;
background-color: #57c1e8;
display: none;
width: 100%;
height: 5px;
}
#V {
position: absolute;
top: 0;
left: 50%;
margin-left: -2.5px;
display: none;
background-color: #57c1e8;
height: 100%;
width: 5px;
}
.pulse {
position: absolute;
height: 40px;
width: 40px;
margin: -6px 0 0 -10px;
z-index: 2;
opacity: 1;
background: rgba(26, 26, 26, 0.9);
border: 5px solid #57c1e8;
border-radius: 60px;
-webkit-animation: flash 2s ease-out 10;
}
@-webkit-keyframes "flash" {
0% {
-webkit-transform: scale(0);
opacity: 0;
}
25% {
-webkit-transform: scale(0);
opacity: 0.1;
}
50% {
-webkit-transform: scale(0.1);
opacity: 0.3;
}
75% {
-webkit-transform: scale(0.5);
opacity: 0.5;
}
100% {
-webkit-transform: scale(1);
opacity: 0;
}
}