Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8995235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:35:34+00:00 2026-06-15T23:35:34+00:00

I love the effect that the initial smoothHeight has when the page loads. I

  • 0

I love the effect that the initial smoothHeight has when the page loads.
I hate the way it slowly reacts to a page resizing after the initial load.
I would love to keep the effect for the initial page load, and then fall back to the default resizing without animation.
I have been chasing this for hours.
By setting the smoothHeight variable back to false at the end of the smoothHeight function itself I can switch the variable back to false after the initial animation, but this disables any resizing of the height after the initial load.
This feels like a very simple operation, but I can’t figure it out.
Thanks ahead of time for any ideas!

Basically, when this block is executed once, it sets the height so that, even once the variable is changed back to false, the height is no longer flexible.

smoothHeight: function(dur) {
if (!vertical || fade) {
var $obj = (fade) ? slider : slider.viewport;
(dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height());
}
}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:35:35+00:00Added an answer on June 15, 2026 at 11:35 pm

    This seems to have done it, I set the smoothHeight variable back to “false” at the beginning of the resize function, so that after the initial page load it won’t try to animate height on resize. Then, I set the slider.viewport height to “100%” in the resize function, which resets the height and from then on resizing the page acts responsively 🙂
    Last but not least, I added the resetHeight boolean variable to the top of the script that is set to false when resize runs for the first time, so that it doesnt waste resources setting the viewport height to 100% every time the page is resized.

    resize: function() {
    if(resetHeight) {
    slider.viewport.height("100%");
    resetHeight=false;}
    if (!slider.animating && slider.is(':visible')) { if (!carousel) slider.doMath(); if (fade) { // SMOOTH HEIGHT: methods.smoothHeight(); } else if (carousel) { //CAROUSEL: slider.slides.width(slider.computedW); slider.update(slider.pagingCount); slider.setProps(); } else if (vertical) { //VERTICAL: slider.viewport.height(slider.h); slider.setProps(slider.h, "setTotal"); } else {
    // SMOOTH HEIGHT:
    if (vars.smoothHeight) methods.smoothHeight(); slider.newSlides.width(slider.computedW); slider.setProps(slider.computedW, "setTotal"); } } }, smoothHeight: function(dur) { if (!vertical || fade) { var $obj = (fade) ? slider : slider.viewport; (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height()); } },

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love LINQ to SQL but it has been bugging me that in using
I love paredit. But there are a couple of things I hate, and have
I love Jenkins and appreciate that it is an active project. Still, I don't
I love Ruby and its framework, but I don't think that Ruby On Rails
I understand the principles behind the split tone effect, and would love to use
I love challenges like this, I'll hopefully submit my answer soon. Which player has
I'm trying to build a similar effect as seen on the MediaFire signup page
Love this website! My issue is as follows: I'm reading a zip file that's
I know that google maps has markers to highlight certain points in the map.
I have an activity that has a header at the top of the screen,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.