Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • damaskmedia Friend
    #203275

    I have made a custom module and have added a background image

    here is my code:

    .parentdiv {

    background-image: url(“http://creativeharmony.co.uk/CC/images/joomlart/church/social-media.jpg”);
    background-size: cover;
    background-position: 50% -55px;
    background-repeat: no-repeat no-repeat;

    }

    How do i make the background have a parallax scrolling effect with the image?

    TomC Moderator
    damaskmedia Friend
    #557451

    HI Tom thanks for the quick response and the links

    however, in the Uber Demo if you look at the Blocks CTA style-3 that already has a parallax image background.

    so I was wondering if there was an easier way to implement this?

    otherwise the easy alternative for me would be to install a third party parallax module which I already have

    chavan Friend
    #557468

    Try this

    .parentdiv {
    background-image: url("http://creativeharmony.co.uk/CC/images/joomlart/church/social-media.jpg");
    background-size: cover;
    background-position: 50% -55px;
    background-repeat: no-repeat no-repeat;
    background-attachment:fixed;
    }

    damaskmedia Friend
    #557471

    wow! amazing worked perfectly

    🙂

    pepperstreet Friend
    #647188

    Hello, just wanted to add my thoughts and investigations about CTA Style3 background FX.

    As far as I know, the background DIV has the special CSS class: .bg-image
    This class is used in the related UBER javascript. So, to get the real parallax effect which modifies the y-Position while scrolling, you have to apply this CSS class. Otherwise you stay with a simple fixed background. I assume, the integrated mobile device check disables the effect anyway.

    BTW, this is the Script in action:
    http://www.ianlunn.co.uk/blog/code-tutorials/recreate-nikebetterworld-parallax/

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 4 voices, and was last updated by  pepperstreet 9 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum