$('#myCanvas').addLayer({
type: 'text',
layer: true,
name: 'text1',
text: 'Текст залетел'
)};
$('#myCanvas').animateLayer('text1', {
x: 150, y: 150,
width: 100, height: 50
}, 1000, function(layer) {
$(this).animateLayer(layer, {
fillStyle: 'rgb(204, 51, 51)',
x: 250, y: 100,
rotate: 360
}, 'slow', 'swing');
});
$('#myCanvas').addLayer({
type: 'text',
layer: true,
name: 'text2',
text: 'Текст залетел'
)};
$('#myCanvas').animateLayer('text2', {
x: 150, y: 150,
width: 100, height: 50
}, 1000, function(layer) {
$(this).animateLayer(layer, {
fillStyle: 'rgb(204, 51, 51)',
x: 250, y: 100,
rotate: 360
}, 'slow', 'swing');
});
$('#myCanvas').setLayer('text1', {
visible: false
}).drawLayers();
Как запустить текст1, спрятать его и запустить текст2?
Продвижение своими сайтами как стратегия роста и независимости