inspec/www/source/stylesheets/_homepage.scss

241 lines
3.9 KiB
SCSS
Raw Normal View History

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