1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

nicer intro animation

This commit is contained in:
Matthias Kretschmann 2015-12-20 19:52:34 +01:00
parent d8eb72702b
commit 99a9d6289f
4 changed files with 28 additions and 9 deletions

View File

@ -15,4 +15,10 @@ jQuery(function($) {
Forms.init(); Forms.init();
SmoothScroll.init(); SmoothScroll.init();
$('.hero .logo').on('animationend webkitAnimationEnd oAnimationEnd',
function(e) {
$('.hero').addClass('is-ready');
}
);
}); });

View File

@ -5,7 +5,7 @@
$active-background: darken($background, 5%); $active-background: darken($background, 5%);
$active-border: darken($border, 12%); $active-border: darken($border, 12%);
color: $color !important; color: $color !important;
background-color: $background; background: $background;
&:hover, &:hover,
&:focus { &:focus {
@ -14,11 +14,8 @@
} }
&:active { &:active {
color: $color !important; color: $color !important;
background-color: darken($background, 30%); background: darken($background, 10%);
transition: none; transition: none;
// Remove the gradient for the pressed/active state
background-image: none;
} }
&.disabled, &.disabled,
&:disabled { &:disabled {

View File

@ -51,6 +51,8 @@
color: #fff; color: #fff;
font-size: $font-size-h1; font-size: $font-size-h1;
margin-bottom: ($spacer * 3); margin-bottom: ($spacer * 3);
&:after { display: none }
} }
.btn { .btn {
@ -62,15 +64,29 @@
} }
// intro animation // intro animation
.logo, .logo {
@extend .animation-slide-in-from-bottom;
animation-duration: 1s;
animation-timing-function: $timing-default;
}
.section-title, .section-title,
.btn { .btn {
@extend .animation-slide-in-from-bottom; @extend .animation-slide-in-from-bottom;
animation-fill-mode: backwards; animation-fill-mode: backwards;
animation-play-state: paused;
} }
.section-title { animation-delay: .2s; } .btn { animation-delay: .2s; }
.btn { animation-delay: .4s; }
&.is-ready {
.section-title,
.btn {
animation-play-state: running;
}
}
} }

View File

@ -77,7 +77,7 @@ front_page: true
<label class="form-label" for="comment">Your Comment (optional)</label> <label class="form-label" for="comment">Your Comment (optional)</label>
</p> </p>
<p class="form-group"> <p class="form-group">
<input class="btn btn-secondary" type="submit" value="Send"> <input class="btn btn-primary" type="submit" value="Send">
</p> </p>
</form> </form>
</div> </div>