-
Notifications
You must be signed in to change notification settings - Fork 6
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
Disable jQuery animations? #10
Comments
What a coincidence, I was just looking for this as well! |
I fixed it by changing the lines in: conditionize2.js on 174 and 177 to show() and hide(). |
Hahahah just did the exact same and (believe it or not), I was going here to tell you |
Hi, @Loosie94 I am glad that you find it useful and thank you for the suggestion. As for hiding and showing, I think it looks like you used a wrong way:) I mean you do not need to change something in the source code. I would not recommend that. Instead, it is better to use the build-in API for setting actions if a condition is true or false. Please see As for this behavior, I would make it without animation by default. That is fine for me. But it is important to keep backward compatibility to not "break" other people's projects. Thanks! |
@rguliev thank you for the explanation. I agree that it indeed is possible. Maybe add an example for this? For everyone who wants to know how to actually do it: $("[data-condition]").conditionize({
ifTrue: function ($section) {
$section.show();
},
ifFalse: function ($section) {
$section.hide();
}
}); |
Hi,
First want to say that I really like your plugin. Use it very often.
Now I was wondering if it is possible to just simply hide/show with display: none; instead of jQuery slide animations.
I like animations, but this one doesn't really do great at the application I build.
I took a look at the options but couldn't find an option to disable this?
Would be great if we can do something like: animations: 'false'
Thanks!
The text was updated successfully, but these errors were encountered: