Issues with Parallax Elements

nano_pillao
Offline
Last seen: 11 months 1 week ago
Wed, 07/13/2016 - 05:04
#1
Issues with Parallax Elements

Hello Guys,

I just downloaded the Ambrosia theme and I´m having a hard time customizing it, specifically with the parallax elements.

The issue is that the parallax elements are out of position leaving a grey gap over the image. The other thing is that the demo image doesn´t fill the 100% of the width.
I had uploaded the one-page template as I received in the zip so you can see the issues I´m talking about:

http://www.avantpix.net/prototipo/slabon/index-onepage.html

Appreciate your assistance.

Best,

Fernando

nano_pillao
Offline
Last seen: 11 months 1 week ago
Wed, 07/13/2016 - 09:21

Hello,

I found a fix at the parallaxInit() function of the script.js files on another post at this forum and my parallax elements are now working fina. You should fix this on the template files youre selling.

Thanks,

linhpeter0508
linhpeter0508's picture
Offline
Last seen: 1 week 1 day ago
Wed, 07/13/2016 - 10:12

Hi,

You forgot "( )" in code isMobile.iOS:

if (isMobile.iOS) {
$('.awe-parallax, .awe-static, .home-slider li .image-wrap .item-img').addClass('fix-background-ios');
}

source: ../js/script.js

you must be added to it. Then, parallax element run corrected

nano_pillao
Offline
Last seen: 11 months 1 week ago
Wed, 07/13/2016 - 21:06

I´ll just use these:

function parallaxInit() {
        $('.awe-parallax').each(function() {
            if (isMobile.any()) {
                $(this).css('background-attachment', 'scroll');
            } else {
                $(this).parallax("50%", 0.1);
            }
        });
    }
Thanks

Log in or register to post comments