How do I change the expanding and contracting speed of the SimpleModal Contact Form (SMCF) - when you open and close it? Thank you in advance.
http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/
How do I change the expanding and contracting speed of the SimpleModal Contact Form (SMCF) - when you open and close it? Thank you in advance.
http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/
Hi swirlyking,
The file you'll want to edit is: smcf/js/smcf.js. The plugin uses fadeInand fadeOut, so you'll just need to update all of the fadeOut(200 and fadeIn(200 code and instead of 200, use the value you desire.
The lower the number, the faster the animation.
Thanks,
Eric
Well, I actually did that already and there was no change in speed. I feel like there must be something else?
I figured it out!!! I was trying to change the sizing animation and the "duration" wasn't specified in the smcf.js file.
It was originally like this:
$('#smcf-container .smcf-content').animate({
height: h
}, function () { . . .
But then I added the 100 in there like this:
$('#smcf-container .smcf-content').animate({
height: h
}, 100, function () { . . .You must log in to post.