Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Being able to animate/morph SVG icons in HTML/JS/CSS?

Explorer ,
Aug 04, 2022 Aug 04, 2022

Currently struggling to morph between two SVGs: https://jsfiddle.net/vu16bw0z/ but it's not going as intended. Any help would be much appreciated!

256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 04, 2022 Aug 04, 2022

It's been some good 10-20 years since I last tried tweening in Flash, but maybe this is the way forward?

Thanks a lot for reading!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 05, 2022 Aug 05, 2022

do you have  to program it  from scratch? If they are both vector shapes (which they are!) you can simply break them apart and then use a Shape Tween to mortph the icons. You can also use Shape Hints to aid  which points from one icon morph into the 2nd icon.

I created a beginner  Animate series for the Adobe  Animate team --  here is a short  video on Shape Tweens. 
Once created,  you can export to HTML5 and BOOM!  Much easier then writing all that code!
https://youtu.be/Hll1Tkqphtc

Hope this helps!
Mark

headTrix, Inc. | Adobe Certified Training & Consulting
In this video you will learn on shape tween in Adobe Animate
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 08, 2022 Aug 08, 2022
LATEST

That is so unbeleivably cool, thank you so much Mark!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines