mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add logo svg animation
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
|
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> -->
|
||||||
<link rel="stylesheet" href="{{ site.baseurl }}/css/bulma-docs.css">
|
<link rel="stylesheet" href="{{ site.baseurl }}/css/bulma-docs.css">
|
||||||
|
|
||||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<svg width="480px" height="480px" viewBox="0 0 480 480" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<svg width="480px" height="480px" viewBox="0 0 480 480" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<!-- Generator: Sketch 40 (33762) - http://www.bohemiancoding.com/sketch -->
|
<g stroke="none" stroke-width="1" fill="#11E4C4" fill-rule="evenodd">
|
||||||
<title>bulma-icon</title>
|
<polygon id="Path" points="136 296 156 156 236 76 336 176 276 236 356 316 236 396"></polygon>
|
||||||
<desc>Created with Sketch.</desc>
|
|
||||||
<defs></defs>
|
|
||||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
||||||
<g id="bulma-icon" fill="#11E4C4">
|
|
||||||
<polygon id="Path" points="136 296 156 156 236 76 336 176 276 236 356 316 236 396"></polygon>
|
|
||||||
</g>
|
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 394 B |
@@ -9,7 +9,7 @@ route: blog
|
|||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-8">
|
<div class="column is-4">
|
||||||
<p class="subtitle4">
|
<p class="subtitle4">
|
||||||
{{ post.date | date_to_string }}
|
{{ post.date | date_to_string }}
|
||||||
</p>
|
</p>
|
||||||
@@ -18,6 +18,8 @@ route: blog
|
|||||||
{{ post.title }}
|
{{ post.title }}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
</div>
|
||||||
|
<div class="column is-8">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ post.content }}
|
{{ post.content }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -77,18 +77,82 @@ $twitter: #55acee
|
|||||||
border-color: $twitter
|
border-color: $twitter
|
||||||
color: $white
|
color: $white
|
||||||
|
|
||||||
|
@keyframes floatUp
|
||||||
|
from
|
||||||
|
box-shadow: 0 0 0 rgba($black, 0), 0 0 0 rgba($black, 0), 0 0 0 rgba($black, 0)
|
||||||
|
transform: scale(0.86)
|
||||||
|
to
|
||||||
|
box-shadow: 0 20px 60px rgba($black, 0.05), 0 5px 10px rgba($black, 0.1), 0 1px 1px rgba($black, 0.2)
|
||||||
|
transform: scale(1)
|
||||||
|
|
||||||
|
@keyframes strokePath
|
||||||
|
from
|
||||||
|
stroke-dashoffset: 880
|
||||||
|
to
|
||||||
|
stroke-dashoffset: 0
|
||||||
|
|
||||||
|
@keyframes fadeIn
|
||||||
|
from
|
||||||
|
opacity: 0
|
||||||
|
transform: scale(0.86)
|
||||||
|
to
|
||||||
|
opacity: 1
|
||||||
|
transform: scale(1)
|
||||||
|
|
||||||
|
@keyframes fadeOut
|
||||||
|
0%
|
||||||
|
opacity: 1
|
||||||
|
transform: scale(0.86)
|
||||||
|
67%
|
||||||
|
opacity: 1
|
||||||
|
transform: scale(0.86)
|
||||||
|
100%
|
||||||
|
opacity: 0
|
||||||
|
transform: scale(1)
|
||||||
|
|
||||||
|
$curve: cubic-bezier(0, 0.71, 0.29, 1)
|
||||||
|
|
||||||
#b
|
#b
|
||||||
|
animation-delay: 1s
|
||||||
|
animation-duration: 1s
|
||||||
|
animation-fill-mode: both
|
||||||
|
animation-name: floatUp
|
||||||
|
animation-timing-function: $curve
|
||||||
border-radius: 20px
|
border-radius: 20px
|
||||||
box-shadow: 0 20px 60px rgba($black, 0.05), 0 5px 10px rgba($black, 0.1), 0 1px 1px rgba($black, 0.2)
|
|
||||||
display: inline-block
|
display: inline-block
|
||||||
height: 240px
|
height: 240px
|
||||||
margin-bottom: 40px
|
margin-bottom: 40px
|
||||||
|
position: relative
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
width: 240px
|
width: 240px
|
||||||
svg
|
svg
|
||||||
|
+overlay
|
||||||
display: block
|
display: block
|
||||||
height: 240px
|
height: 240px
|
||||||
width: 240px
|
width: 240px
|
||||||
|
&:first-child
|
||||||
|
animation-duration: 1.5s
|
||||||
|
animation-fill-mode: both
|
||||||
|
animation-name: fadeOut
|
||||||
|
animation-timing-function: $curve
|
||||||
|
g
|
||||||
|
animation-duration: 1s
|
||||||
|
animation-fill-mode: both
|
||||||
|
animation-name: strokePath
|
||||||
|
animation-timing-function: $curve
|
||||||
|
fill: none
|
||||||
|
stroke: $turquoise
|
||||||
|
stroke-dasharray: 880
|
||||||
|
stroke-width: 2px
|
||||||
|
&:last-child
|
||||||
|
animation-delay: 1s
|
||||||
|
animation-duration: 1s
|
||||||
|
animation-fill-mode: both
|
||||||
|
animation-name: fadeIn
|
||||||
|
animation-timing-function: $curve
|
||||||
|
g
|
||||||
|
fill: $turquoise
|
||||||
|
|
||||||
+mobile
|
+mobile
|
||||||
border-radius: 10px
|
border-radius: 10px
|
||||||
height: 120px
|
height: 120px
|
||||||
|
|||||||
@@ -6310,22 +6310,108 @@ body.page-grid .column > .notification {
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes floatUp {
|
||||||
|
from {
|
||||||
|
box-shadow: 0 0 0 rgba(18, 18, 18, 0), 0 0 0 rgba(18, 18, 18, 0), 0 0 0 rgba(18, 18, 18, 0);
|
||||||
|
transform: scale(0.86);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
box-shadow: 0 20px 60px rgba(18, 18, 18, 0.05), 0 5px 10px rgba(18, 18, 18, 0.1), 0 1px 1px rgba(18, 18, 18, 0.2);
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes strokePath {
|
||||||
|
from {
|
||||||
|
stroke-dashoffset: 880;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0.86);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeOut {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(0.86);
|
||||||
|
}
|
||||||
|
67% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(0.86);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#b {
|
#b {
|
||||||
|
animation-delay: 1s;
|
||||||
|
animation-duration: 1s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: floatUp;
|
||||||
|
animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
box-shadow: 0 20px 60px rgba(18, 18, 18, 0.05), 0 5px 10px rgba(18, 18, 18, 0.1), 0 1px 1px rgba(18, 18, 18, 0.2);
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 240px;
|
height: 240px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
|
position: relative;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 240px;
|
width: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#b svg {
|
#b svg {
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
display: block;
|
display: block;
|
||||||
height: 240px;
|
height: 240px;
|
||||||
width: 240px;
|
width: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#b svg:first-child {
|
||||||
|
animation-duration: 1.5s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: fadeOut;
|
||||||
|
animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#b svg:first-child g {
|
||||||
|
animation-duration: 1s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: strokePath;
|
||||||
|
animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1);
|
||||||
|
fill: none;
|
||||||
|
stroke: #11e4c4;
|
||||||
|
stroke-dasharray: 880;
|
||||||
|
stroke-width: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#b svg:last-child {
|
||||||
|
animation-delay: 1s;
|
||||||
|
animation-duration: 1s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: fadeIn;
|
||||||
|
animation-timing-function: cubic-bezier(0, 0.71, 0.29, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#b svg:last-child g {
|
||||||
|
fill: #11e4c4;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
#b {
|
#b {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ route: index
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<p id="b">
|
<p id="b">
|
||||||
{% include svg/bulma-icon.svg %}
|
{% include svg/bulma-icon.svg %}
|
||||||
|
{% include svg/bulma-icon.svg %}
|
||||||
</p>
|
</p>
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
Bulma
|
Bulma
|
||||||
|
|||||||
Reference in New Issue
Block a user