codepen.io/davidkpiano/pen/wMqXea
speaking of gentle look at this gentle little buddy
<filter id="squiggly-0">
<feTurbulence id="turbulence"
baseFrequency="0.02"
numOctaves="3"
result="noise"
seed="0"/>
<feDisplacementMap id="displacement"
in="SourceGraphic"
in2="noise"
scale="2" />
</filter>
@keyframes squiggly-anim {
0% {
filter: url('#squiggly-0');
}
25% {
filter: url('#squiggly-1');
}
50% {
filter: url('#squiggly-2');
}
75% {
filter: url('#squiggly-3');
}
100% {
filter: url('#squiggly-4');
}
}
Many different SVG filters are applied to HTML elements and rapidly changed.
Two options for text in SVG:
1. Convert it to outlines (works everywhere, heavier, not really text)
2. Leave as <text>. Just make sure you load the @font-face
https://css-tricks.com/svg-text-typographic-designs/
https://css-tricks.com/creating-web-type-lockup/
var tl = new TimelineMax({repeat: -1});
var svg = document.getElementById("house");
TweenLite.defaultEase = Sine.easeInOut;
TweenLite.defaultOverwrite = false;
tl.to(svg, 2, {delay: 1, attr: {viewBox: "450 350 252 178"}})
.to(svg, 4, {attr: {viewBox: "60 350 252 178"}})
.to(svg, 2, {attr: {viewBox: "60 210 252 178"}}, "-=0.25")
.to(svg, 4, {attr: {viewBox: "444 210 252 178"}})
.to(svg, 2, {attr: {viewBox: "0 0 757.8 534.8"}})
Choice #1) All Icons Same Size / Aspect Ratio
Benefit: Icons have similar relative size
Downside: Harder to align sometimes
Choice #2) Icons are cropped to edges
Benefit: Alignment is easy
Downside: Sizing can be more difficult
p.s. digging simurai's duotone themes
Even with Illustrators better export, you benefit from SVGO
I use it the same way I use ImageOptim for every other image format.
Easing like this can feel very whimsical.
tl.to('#circle', 1, {
morphSVG: {
shape: '#square'
},
stroke: '#00ff00',
fill: '#00ff00',
ease: Back.easeInOut
})
Mini Talk on SVG Shape Morphing?
This is CSS clipping paths, but it's the same idea.
<path d="M24.9,143.2 c76-105.1,410-227.1,574.5,58.4"
id="plane-path"></path>
<image xlink:href="http://deadbinky.com/projects/rallySnippets/plane.png" id="plane" x="-25" y="-25" width="50" height="50">
<animateMotion class="svg-anim" id="plane-motion"
dur="9s"
rotate="auto"
fill="freeze"
begin="0s"
repeatCount="once"
calcMode="spline"
keySplines="0.833333 0.02 0.5 1"
keyTimes="0; 1">
<mpath xlink:href="#plane-path"></mpath>
</animateMotion>
</image>
Robin Rendle:
https://css-tricks.com/how-to-make-charts-with-svg/
SVG for art!
http://codepen.io/collection/svfAa/