Dogstudio / highway

Highway - A Modern Javascript Transitions Manager
https://highway.js.org/
MIT License
1.43k stars 92 forks source link

kill/destroy class declarations? #89

Closed vishalp36 closed 4 years ago

vishalp36 commented 4 years ago

SOS I want to kill/destroy gsap animations from new Home();

import Home from "home/home";
let home = undefined;
class HomeTransition extends Highway.Transition {

    in ({ from, to, done }) {
        from.remove();
        home = new Home();
        done();

    }

    out({ from, done }) {
        home = undefined;
        done();
    }
}
Anthodpnt commented 4 years ago

Hey @vishalp36!

We have to close this issue because it isn't related to Highway. We recommend you to join the Slack community for this kind of requests. We'll be happy to review this issue related to your source code on Slack. Let's keep the Issues section for Highway-only issues.

Thanks, Anthodpnt