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

  1. swirlyking
    Posted 4 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.


  2. Eric Martin
    Plugin Author

    Posted 4 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.


  3. swirlyking
    Posted 4 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
    Posted 4 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

  • SimpleModal Contact Form (SMCF)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic