Jump to content
Search Community

ghenry

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by ghenry

  1. Hi all,

     

    I have a "loading" index.html page that bootstraps our Single Page App. That SPA uses gsap via import methods. The SVG animation I'm doing in the index.html tramples all over the stuff in my SPA.

     

    I presume the best way is to keep things in a namespace/vars and not just use TweenLite.xx()/TweenMax.xx() every where and kill them off?

     

    It's kind of related to https://greensock.com/forums/topic/18460-csspluginjs-ns_error_failure-and-svgs-using-vuejs/?tab=comments#comment-85438 as my index.html includes TweenMax.min.js for the initial loading.

     

    Thanks.

  2. Hi,

     

    I'm using TweenMax inside a Vue.js SFC - https://vuejs.org/v2/guide/single-file-components.html

     

    It's a Spinner component I re-use throughout our app. As soon as I visit a page using vuejs router - https://router.vuejs.org/

    that has a spinner component in it and then go to another page, on return to the previous page, the animation no longer works and I get tons of errors that increment really fast in the console.

     

    It may be related to this if vue.js is hiding it for reuse -

    I'm not sure if I should be troubleshooting in this forum or vue.js

     

    Thanks,

    Gavin.

    Screenshot from 2018-06-05 20-48-24.png

    See the Pen MXewRb by ghenry (@ghenry) on CodePen

×
×
  • Create New...