Jump to content
Search Community

nusson

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by nusson

  1. And how to import it if we are member and we have those files

    I use TweenMax from npm

    ```
    import {TweenMax, Expo} from 'gsap'

    import ScrollToPlugin from 'gsap/src/uncompressed/plugins/ScrollToPlugin';
    ```

    and I added pro plugins in a folder

    ```
    import 'src/vendors/gsap/SplitText';
    // I am able to use splitText
    ```

    But this specific plugin doesn't work

    I've tried
    ```
    import 'src/vendors/gsap/ScrambleTextPlugin';
    import ScrambleTextPlugin from 'src/vendors/gsap/ScrambleTextPlugin';
    import * as ScrambleTextPlugin 'src/vendors/gsap/ScrambleTextPlugin';
    ```

    (but if i add the script directly in the `<head>` that will work)
    `<script src="/static/ScrambleTextPlugin.js"></script>`

×
×
  • Create New...