inspec/www/source/stylesheets/_homepage.scss

141 lines
3.7 KiB
SCSS
Raw Normal View History

2016-09-20 18:33:17 +00:00
//Hero Banner - Home Page
2016-09-20 18:33:17 +00:00
header {
2017-01-07 00:03:24 +00:00
height: 440px;
2017-01-07 04:53:01 +00:00
}
#particles-js { //Animated dot particles
width: 100%;
height: 500px;
overflow: hidden;
position: absolute;
background-color: transparent;
margin-top: -500px;
z-index: 20;
2017-01-07 04:53:01 +00:00
}
#particles-second{ //Animated line particles
2017-01-06 21:21:45 +00:00
width:100%;
max-width: 100%;
overflow: hidden;
position: absolute;
background-color: transparent;
height:100%;
z-index: -1;
2017-01-07 04:53:01 +00:00
}
2017-01-07 04:53:01 +00:00
.h-top { //Container for homepage header art
2017-01-07 00:03:24 +00:00
height: 440px;
img {
2017-01-07 04:53:01 +00:00
&:first-of-type { //Grid Art
height: 420px;
2017-01-07 00:03:24 +00:00
position: absolute;
top:70px;
z-index: 10;
}
2017-01-07 04:53:01 +00:00
&:nth-child(3) { //Diamond
2017-01-07 00:03:24 +00:00
height: 230px;
2017-01-07 04:53:01 +00:00
margin-top: 128px;
}
}
2017-01-07 04:53:01 +00:00
h1 { //Heading
z-index: 10;
position: absolute;
2017-01-07 04:53:01 +00:00
margin-top: 358px;
}
2016-09-20 18:33:17 +00:00
}
2017-01-07 04:53:01 +00:00
//Hero illustration for Community
img.grid {
margin-top: -80px;
z-index: -1;
2017-01-07 04:53:01 +00:00
}
img.ball {
position: absolute;
width: 35px;
margin-left: 240px;
margin-top: 20px;
-webkit-animation: spin 2s linear infinite both;
2017-01-07 04:53:01 +00:00
animation: spin 2s linear infinite both;
-moz-animation: spin 2s linear infinite both;
}
img.ball:nth-child(2){
2017-01-07 04:53:01 +00:00
width: 55px;
margin-left: 150px;
margin-top: 110px;
}
img.ball:nth-child(3){
width: 75px;
margin-left: 290px;
margin-top: 130px;
2017-01-07 04:53:01 +00:00
}
2017-01-07 04:53:01 +00:00
// Children page Headers
2017-01-07 04:53:01 +00:00
.child-h {
height: 180px;
margin-top: 81px; //plus header height
}
2017-01-07 04:53:01 +00:00
.child-h .purp-shade, .child-h #particles-second {
height: 180px;
}
2017-01-07 04:53:01 +00:00
.child-h .row {
position: relative;
top: 50%; //vertically align content inside parent
-webkit-transform: translateY(-50%); //vertically align content inside parent
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
2017-01-07 04:53:01 +00:00
.child-h #particles-second {
z-index: 1;
}
2017-01-07 04:53:01 +00:00
// Animation for Home Page
2016-09-20 18:33:17 +00:00
//Reflecting Diamond
2016-09-20 18:33:17 +00:00
.bright-animate{
animation: brightness 6s infinite;
-webkit-animation: brightness 6s infinite;
-moz-animation: brightness 6s infinite;
2017-01-07 04:53:01 +00:00
}
@-webkit-keyframes brightness { 0%, 100% { -webkit-filter: brightness(none); filter: brightness(none); } 50% { -webkit-filter: brightness(1.2); filter: brightness(1.2); } }
@keyframes brightness { 0%, 100% { -moz-filter: brightness(none); filter: brightness(none); } 50% { -moz-filter: brightness(1.2); filter: brightness(1.2); } }
2016-09-20 18:33:17 +00:00
//Warping Grid Animation//
2016-09-20 18:33:17 +00:00
.grid-animate{
-webkit-animation: g-animate 5s linear infinite both;
animation: g-animate 5s linear infinite both;
-moz-animation: g-animate 5s linear infinite both;
2017-01-07 04:53:01 +00:00
}
2017-01-07 04:53:01 +00:00
@-webkit-keyframes g-animate { 25% { -webkit-transform: rotateZ(10deg) scale3d(0.7, 1, 1.2); transform: rotateZ(10deg) scale3d(0.7, 1, 1.2); } 50% {-webkit-transform: scale3d(1.2, 0.7, 1); transform: scale3d(1.2, 0.7, 1); } 75% {-webkit-transform: rotateZ(10deg) scale3d(0.7, 1.2, 0.5); transform: rotateZ(10deg) scale3d(0.7, 1.2, 0.5); } }
@keyframes g-animate { 25% { -moz-transform: rotateZ(10deg) scale3d(0.7, 1, 1.2); transform: rotateZ(10deg) scale3d(0.7, 1, 1.2); } 50% {-moz-transform: scale3d(1.2, 0.7, 1); transform: scale3d(1.2, 0.7, 1); } 75% {-moz-transform: rotateZ(10deg) scale3d(0.7, 1.2, 0.5); transform: rotateZ(10deg) scale3d(0.7, 1.2, 0.5); } }
2017-01-06 21:21:45 +00:00
2017-01-07 04:53:01 +00:00
//Growing HR
2017-01-06 21:21:45 +00:00
hr.first {
2017-01-07 04:53:01 +00:00
width: 0px; //Apply to animated HR, JS calls this
2017-01-06 21:21:45 +00:00
}
.stretch{
2017-01-07 00:03:24 +00:00
-webkit-animation: grow 0.6s linear 1 both;
animation: grow 0.6s linear 1 both;
-moz-animation: grow 0.6s linear 1 both;
}
2017-01-07 04:53:01 +00:00
@-webkit-keyframes grow { from { width:0px;} to {width:150px;} }
@keyframes grow { from { width:0px;} to {width:150px;} }
2017-01-07 04:53:01 +00:00
//Spin Animation Keyframes
2017-01-07 04:53:01 +00:00
@-moz-keyframes spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);} }