Skip to content

Instantly share code, notes, and snippets.

@martinrisseeuw
Last active January 19, 2016 12:41
Show Gist options
  • Save martinrisseeuw/787b88df6d5886941a34 to your computer and use it in GitHub Desktop.
Save martinrisseeuw/787b88df6d5886941a34 to your computer and use it in GitHub Desktop.
animated icon
<html>
<head>
<style>
body{
background: #75D084;
}
svg{
width: 20%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.st0{fill:none;stroke:#FFFFFF;stroke-width:6;}
.st1{fill:none;stroke:#FFFFFF;stroke-width:6;stroke-linecap:round;}
.st2{fill:none;stroke:#FFFFFF;stroke-width:6;stroke-linejoin:bevel;}
#blad{
-webkit-transition: .3s ease-in;
transition: .3s ease-in;
-webkit-transform: rotate(0deg) translate(0%, 0%);
-ms-transform: rotate(0deg) translate(0%,0%);
transform: rotate(0deg) translate(0%,0%);
-webkit-animation-name: wave;
animation-name: wave;
-webkit-animation-duration: .3s;
animation-duration: .3s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
animation-direction: alternate;
}
@-webkit-keyframes wave {
from {
-webkit-transform: rotate(0deg) translate(0%, 0%);
transform: rotate(0deg) translate(0%,0%);
}
to {
-webkit-transform: rotate(27deg) translate(90%, -95%);
transform: rotate(27deg) translate(90%, -95%);
}
}
@keyframes wave {
from {
-webkit-transform: rotate(0deg) translate(0%, 0%);
transform: rotate(0deg) translate(0%,0%);
}
to {
-webkit-transform: rotate(27deg) translate(90%, -95%);
transform: rotate(27deg) translate(90%, -95%);
}
}
</style>
</head>
<body>
<svg version="1.1" id="Layer_1" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 296 474"
style="enable-background:new 0 0 296 474;" xml:space="preserve">
<title>Ontmoet icoon</title>
<desc>Animatie voor het ontmoet scherm</desc>
<g id="meet_intro" transform="translate(-247.000000, -608.000000)" sketch:type="MSArtboardGroup">
<g id="meet_icon" transform="translate(247.000000, 608.000000)" sketch:type="MSLayerGroup">
<g id="textcloud" sketch:type="MSShapeGroup">
<path id="Rectangle-4" class="st0" d="M13.9,10h267.3c4.2,0,7.7,3.4,7.7,7.7v167.8c0,4.2-3.4,7.7-7.7,7.7H13.9
c-4.2,0-7.7-3.4-7.7-7.7V17.7C6.3,13.4,9.7,10,13.9,10z"/>
<path id="Line" class="st1" d="M35.4,62h145.3"/>
<path id="Line-Copy" class="st1" d="M35.4,98.4h222.2"/>
<path id="Line-Copy-2" class="st1" d="M35.4,140h222.2"/>
</g>
<path id="steel" sketch:type="MSShapeGroup" class="st1" d="M150.6,193.1v272.9"/>
<path id="blad" sketch:type="MSShapeGroup" class="st2" d="M150.8,307.2c0,0-93.9,36.4-115.9-0.3s15.5-65.2,33.7-60.3
S150.8,307.2,150.8,307.2z"/>
</g>
</g>
</svg>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment