Skip to content
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

sticky-kit not working my product page.? #273

Open
monparaashvin opened this issue Jan 25, 2020 · 0 comments
Open

sticky-kit not working my product page.? #273

monparaashvin opened this issue Jan 25, 2020 · 0 comments

Comments

@monparaashvin
Copy link

monparaashvin commented Jan 25, 2020

code but not working my js file
` $(window).on('load resize', function () {
var product_summery_sticky = $(".single-product-page .single-product-info");
var product_images_sticky = $(".single-product-page .f-image .single-product-image");
var product_summery_sticky_height = product_summery_sticky.height();
var product_images_sticky_height = product_images_sticky.height();

    if ($(window).width() > 768) {
        var offset = 15;
            if(product_summery_sticky_height > product_images_sticky_height){
                product_images_sticky.stick_in_parent({
                    offset_top: offset
              });
            }
              if(product_summery_sticky_height < product_images_sticky_height){
                product_summery_sticky.stick_in_parent({
                    offset_top: offset
              });
            }
    } else{
                product_images_sticky.trigger('sticky_kit:detach');
                 product_summery_sticky.trigger('sticky_kit:detach');
            }
    }
});`

screenshot:-https://prnt.sc/qslu8j

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant