I'm trying to reproduce the same effect someone did here - > link , this frame is animated by scrolling, so you need to scroll down a bit until a text with a snake animation will appear.
I'm trying to play this animation, but I'm having a hard time. I already looked for some jquery plugins, and I was able to find:
Arctext.js
CircleType
This one
But none of these was very helpful to me as you can imagine. I realized that whoever did it used the Canvas, so I went back to see if I found tutorials, and anyway .. I did not find anything.
What I've been able to do so far is a static curve using Konvajs:
var stage = new Konva.Stage({
container: 'container',
width: 1000,
height: 1000
});
var layer = new Konva.Layer();
stage.add(layer);
var textpath = new Konva.TextPath({
x: 0,
y: 50,
fill: '#333',
fontSize: 16,
fontFamily: 'Arial',
text: 'Testando esse é um texto em curva, muito bacana, agora eu quero anima-lô',
data: 'M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 100 900 100'
});
layer.add(textpath);
layer.draw();
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #F0F0F0;
}
<script src="https://cdn.rawgit.com/konvajs/konva/0.9.0/konva.min.js"></script><divid="container"></div>
I'm stuck in the animation part, can you help me?
Thank you.