Skip to content

Instantly share code, notes, and snippets.

@arturkot
Created September 7, 2016 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arturkot/ba94ecf871a66b133ee6cc64b44e998a to your computer and use it in GitHub Desktop.
Save arturkot/ba94ecf871a66b133ee6cc64b44e998a to your computer and use it in GitHub Desktop.
import 'MorphSVGPlugin';
import TimelineMax from 'gsap/src/uncompressed/TimelineMax';
import { Power1 } from 'gsap/src/uncompressed/easing/EasePack';
const elA = catEl.querySelector('.el-a');
const elB = catEl.querySelector('.el-b');
const tl = new TimelineMax()
.to(elA, 2, { morphSVG: elB, ease: Power1.easeInOut });
export default tl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment