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

Callback on finish #2

Open
andreluizrodper opened this issue Nov 18, 2013 · 0 comments
Open

Callback on finish #2

andreluizrodper opened this issue Nov 18, 2013 · 0 comments

Comments

@andreluizrodper
Copy link

Hey man

I use your plugin in my folio and I've added a callback on the finish of the load at the fade out of the load image

You can put this " options.onFinish() " at the line 124 and pass a function like this at the plugin call:

$("body").screw({
loadingHTML: 'Loading',
onFinish: function(){
if($(window).height() > $(window).width()){
$('.screw-content').width($(window).height())
}else{
$('.screw-content').width($(window).width())
}
}
});

Thank's man good job btw

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