WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Contact Form (SMCF)
[resolved] effect speed (4 posts)

  1. swirlyking
    Member
    Posted 2 years ago #

    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/

  2. Eric Martin
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. swirlyking
    Member
    Posted 2 years ago #

    Well, I actually did that already and there was no change in speed. I feel like there must be something else?

  4. swirlyking
    Member
    Posted 2 years ago #

    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 () { . . .

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic