Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle events when using the load method. #353

Open
federicovezzoli opened this issue Jan 11, 2018 · 0 comments
Open

handle events when using the load method. #353

federicovezzoli opened this issue Jan 11, 2018 · 0 comments

Comments

@federicovezzoli
Copy link

I'm using the .load(url) method to enable smoothstate on an element outside the container.

The content is correctly loaded but no event is fired, so it seems impossible to make the transition smoother and rebind the correct scripts since I don't exactly know when the content is loaded in the dom.

The code is some very basic:

$(".logo").on("click",function(){
    sv.smoothState.load($(this).attr("href"));
    return false;
});

anyone can help?
thanks a lot

@federicovezzoli federicovezzoli changed the title handle animations and onReady event when useing the load method. handle events when using the load method. Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant