replace button with bouncing arrow on first slide

lektura
max.mehl 2017-08-29 09:34:37 +02:00
parent 33b6907163
commit 96bc2ae0e5
2 changed files with 33 additions and 1 deletions

View File

@ -18,8 +18,11 @@
<p>{{ . | markdownify }}</p>
{{ end }}
{{ with .Site.Params.start.buttonText }}
<a href="#about" class="btn btn-primary btn-xl page-scroll">{{ . }}</a>
<!--<a href="#about" class="btn btn-primary btn-xl page-scroll">{{ . }}</a>-->
{{ end }}
<div class="arrow-bounce">
<a class="fa fa-chevron-down fa-3x hiddenlink page-scroll" href="#about"></a>
</div>
</div>
</div>
</header>

View File

@ -134,3 +134,32 @@ a:not(.btn):not(.hiddenlink):hover::before, a:not(.btn):not(.hiddenlink):focus::
left: 0;
right: 0;
}
/* Bouncing down arrow */
.arrow-bounce {
text-align: center;
margin: -30px 0;
-moz-animation: bounce 2s infinite;
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
}
.arrow-bounce a {
color: #168EC1;
padding: 30px;
}
.arrow-bounce a:hover {
color: #0F5E80;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-20px);
}
60% {
transform: translateY(-10px);
}
}