Okay
  Public Ticket #3669199
Cascading Images Mobile
Closed

Comments

  • Scott started the conversation

    I have a cascading image setup (layered w/ parallax) as a hero image on this landing page. I've been able to get it centered, and operating correctly on desktop. However, on mobile, the image is a postage stamp in size. When I try to increase the size of the image layers, they get bigger, but also shift to the right and off the screen view. Not sure how to prevent that from happening - or if there's a better method to achieve what we have going on. 

    It's currently set to hide the cascading images on mobile, and replaces with a static flat image. I'd like to keep the parallax effect on mobile. 

  •  1,919
    Judith replied

    Hello Scott,

    Thanks for writing to us.

    This is how it shows on my end :

    1943766292.png

    Please let us know how you would want this to appear.

    I look forward to your response.

  • Scott replied

    This is what it looks like on mobile using the cascading images. If you reference it to the desktop view you will see the layers do not align correctly. They seem to stack up towards the top. 

    Additionally I'd like to reduce the margin on the sides, so the logo appears bigger on mobile view. When I use the setting Max Mobile Width and set it to something like 125 or 150%, it shifts the image to the right and off the screen, rather than keeping it center. 

    Attached files:  Screenshot 2024-06-27 at 1.19.27 PM.png

  •  1,919
    Judith replied

    Hi Scott,

    Thanks for writing back.

    To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:

    From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:

    @media only screen and (min-width: 1px) and (max-width: 999px) {
        .nectar_cascading_images .cascading-image .inner-wrap, .nectar-icon-list[data-animate="true"] .content, .nectar-icon-list[data-animate="true"] .nectar-icon-list-item .list-icon-holder, .nectar-icon-list[data-animate="true"]:after, .nectar-animated-title[data-style="color-strip-reveal"] .nectar-animated-title-inner .wrap, .nectar-animated-title[data-style="color-strip-reveal"] .nectar-animated-title-inner .wrap *, .nectar-animated-title[data-style="color-strip-reveal"] .nectar-animated-title-inner:after, .nectar-animated-title[data-style="hinge-drop"] .nectar-animated-title-inner, .nectar-woo-flickity[data-animation*="fade-in"] ul.products .flickity-cell > .product {
            scale: 1.7;
        }
    }

    Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help.