inspec/www/source/stylesheets/_homepage.scss

99 lines
1.9 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 {
height: 500px;
2016-09-20 18:33:17 +00:00
}
#container {
height: 500px;
overflow: hidden;
position: relative;
2016-09-20 18:33:17 +00:00
}
.h-top {
position: absolute;
z-index: 1;
img {
&:first-of-type {
height: 500px;
position: relative;
}
&:nth-child(3) {
position: absolute;
height: 250px;
top: 120px;
z-index: -1;
}
}
h1 {
position: absolute;
z-index: 10;
top: 75%;
}
2016-09-20 18:33:17 +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;
}
2016-09-20 18:33:17 +00:00
@-webkit-keyframes brightness {
0%, 100% {
-webkit-filter: brightness(none);
filter: brightness(none);
2016-09-20 18:33:17 +00:00
}
50% {
-webkit-filter: brightness(1.2);
filter: brightness(1.2);
2016-09-20 18:33:17 +00:00
}
}
@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;
2016-09-20 18:33:17 +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);
}
}