SVG morphing with anime.js
up vote
0
down vote
favorite
I'm trying to make an SVG animation where first I draw the animation in Adobe illustrator then I get the code and animate it with anime.js.
I'm animating (changing) only the "d" attribute in the SVG.
I encountered a problem as same as the problem in the tutorial I was following:
youtube tutorial (19:20)
Seems my SVG code is not exported properly or I'm doing something wrong with the anchor points.
StartUpTimeline.add(
targets: morph,
d: [
value: 'M0,0,1,360S184,253,440,254c245,1,346,236,520,236,182,0,277-189,559-189,183,0,402,100,402,100V1Z' ,
],
easing: 'easeInQuint',
duration: 1500,
)
<svg id="morph" height="100%" width="100%" viewbox="0 0 1920 1080" preserveAspectRatio="none">
<path class="morph" fill="#002e3a"
d="M0,0H1S184-1,440,0C685,1,786,0,960,0c182,0,246,1,528,1h433Z"/>
</svg>
css svg anime.js
add a comment |
up vote
0
down vote
favorite
I'm trying to make an SVG animation where first I draw the animation in Adobe illustrator then I get the code and animate it with anime.js.
I'm animating (changing) only the "d" attribute in the SVG.
I encountered a problem as same as the problem in the tutorial I was following:
youtube tutorial (19:20)
Seems my SVG code is not exported properly or I'm doing something wrong with the anchor points.
StartUpTimeline.add(
targets: morph,
d: [
value: 'M0,0,1,360S184,253,440,254c245,1,346,236,520,236,182,0,277-189,559-189,183,0,402,100,402,100V1Z' ,
],
easing: 'easeInQuint',
duration: 1500,
)
<svg id="morph" height="100%" width="100%" viewbox="0 0 1920 1080" preserveAspectRatio="none">
<path class="morph" fill="#002e3a"
d="M0,0H1S184-1,440,0C685,1,786,0,960,0c182,0,246,1,528,1h433Z"/>
</svg>
css svg anime.js
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to make an SVG animation where first I draw the animation in Adobe illustrator then I get the code and animate it with anime.js.
I'm animating (changing) only the "d" attribute in the SVG.
I encountered a problem as same as the problem in the tutorial I was following:
youtube tutorial (19:20)
Seems my SVG code is not exported properly or I'm doing something wrong with the anchor points.
StartUpTimeline.add(
targets: morph,
d: [
value: 'M0,0,1,360S184,253,440,254c245,1,346,236,520,236,182,0,277-189,559-189,183,0,402,100,402,100V1Z' ,
],
easing: 'easeInQuint',
duration: 1500,
)
<svg id="morph" height="100%" width="100%" viewbox="0 0 1920 1080" preserveAspectRatio="none">
<path class="morph" fill="#002e3a"
d="M0,0H1S184-1,440,0C685,1,786,0,960,0c182,0,246,1,528,1h433Z"/>
</svg>
css svg anime.js
I'm trying to make an SVG animation where first I draw the animation in Adobe illustrator then I get the code and animate it with anime.js.
I'm animating (changing) only the "d" attribute in the SVG.
I encountered a problem as same as the problem in the tutorial I was following:
youtube tutorial (19:20)
Seems my SVG code is not exported properly or I'm doing something wrong with the anchor points.
StartUpTimeline.add(
targets: morph,
d: [
value: 'M0,0,1,360S184,253,440,254c245,1,346,236,520,236,182,0,277-189,559-189,183,0,402,100,402,100V1Z' ,
],
easing: 'easeInQuint',
duration: 1500,
)
<svg id="morph" height="100%" width="100%" viewbox="0 0 1920 1080" preserveAspectRatio="none">
<path class="morph" fill="#002e3a"
d="M0,0H1S184-1,440,0C685,1,786,0,960,0c182,0,246,1,528,1h433Z"/>
</svg>
StartUpTimeline.add(
targets: morph,
d: [
value: 'M0,0,1,360S184,253,440,254c245,1,346,236,520,236,182,0,277-189,559-189,183,0,402,100,402,100V1Z' ,
],
easing: 'easeInQuint',
duration: 1500,
)
<svg id="morph" height="100%" width="100%" viewbox="0 0 1920 1080" preserveAspectRatio="none">
<path class="morph" fill="#002e3a"
d="M0,0H1S184-1,440,0C685,1,786,0,960,0c182,0,246,1,528,1h433Z"/>
</svg>
StartUpTimeline.add(
targets: morph,
d: [
value: 'M0,0,1,360S184,253,440,254c245,1,346,236,520,236,182,0,277-189,559-189,183,0,402,100,402,100V1Z' ,
],
easing: 'easeInQuint',
duration: 1500,
)
<svg id="morph" height="100%" width="100%" viewbox="0 0 1920 1080" preserveAspectRatio="none">
<path class="morph" fill="#002e3a"
d="M0,0H1S184-1,440,0C685,1,786,0,960,0c182,0,246,1,528,1h433Z"/>
</svg>
css svg anime.js
css svg anime.js
edited Nov 10 at 16:55
Liam Strilchuk
12515
12515
asked Nov 10 at 16:07
mart cube
265
265
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240802%2fsvg-morphing-with-anime-js%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown