Home>Support>De-activate default parallax effect

De-activate default parallax effect

By Mimo Media, 8 years ago. Last reply by Mimo Media, 8 years ago.

Hi,
I have been using your plugin with a parallax effect i added. It was working great, but now, you have included the parallax effect that seems to not work properly in my themes and i would like to delete it and have mine until you, as i have read in other threads, implement a valid parallax library that has no issues.
So, is it possible to de-activate the default parallax so when the user select an image background behaviour only appears mine?

I have included my url, but i am developing this in my localhost, so i have no url to share.
Thank you very much!!

URL: http://www.mimo.media

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 10 months ago Greg Priday
    Hi, I Work Here

    Hi Mimo

    Sorry for the late reply here. Hopefully we’ll be releasing the Page Builder update with new parallax effect in the next couple days. We’re really just waiting to test it a little more before releasing it. If you have a moment, would you mind checking it with your theme?

    https://github.com/siteorigin/siteorigin-panels/

  2. 8 years, 10 months ago Mimo Media

    Hi there, yesterday i finally did not found the time to test it, but today i have tested your new version and it seems it is not working properly in my theme, there is an issue with widgets and rows lack of background and overlapping hover the parallax row.

    Just in case you want to take a look to how i did it, I did included a parallax effect that was working properly no matter how many parallax rows you have in a page and i did this:

    -Enqueue this simple lightweight parallax plugin https://github.com/weblinc/jquery-parallax

    -I have recovered this from the old version, not complete functions but i think it is enough for you to see, included in my functions, following your documentation:

    function mm_row_style_fields($fields) {
      $fields['mmparallax'] = array(
          'name'        => __('Parallax', 'mimo-action'),
          'type'        => 'checkbox',
          'group'       => 'design',
          'description' => __('If enabled, the background image will have a parallax effect.', 'mimo-action'),
          'priority'    => 8,
      );
    }
    
    add_filter( 'siteorigin_panels_row_style_fields', 'mm_row_style_fields' );
    
    function mm_row_style_attributes( $attributes, $args ) {
        if( !empty( $args['mmparallax'] ) ) {
            array_push($attributes['class'], 'mm-parallax-row');
        }
    

    As this parallax plugins works with the css background from the row, you only need to give it a class to the row you need. As the jquery plugin has several options, i think it would be great for user to choose the parallax velocity and things like that. I did not included that but was thinking about it when you released the Page Builder with parallax version.

    I did tested this and was working without any issue.

    Pros:

    -It takes the actual image background user sets in the Page Builder Row Options, so it uses as you want ( Tiled image, fullwidth…etc, no matter)
    -You can activate it or not with a checkbox, because i really don’t understand why you have included it as an option in the background image select if this is an effect. Probably i am wrong.

    Cons

    -I did not found

    Hope this can help you

    Best Regards and congratulations for this great plugin.
    Mimo

  3. 8 years, 10 months ago Mimo Media

    Hi again,

    sorry i forgot to mention that you can see a working demo of this parallax effect at:

    http://mimo.media/where/

    I have updated Page Builder Plugin but if i don’t choose your parallax effect at background and choose ‘Cover’ and set the ‘my’ parallax effect for this row it works perfect.

    Regards

  4. 8 years, 10 months ago Mimo Media

    Hi again, i have tested version 2.2.1 and the parallax effect seems to work properly.

    Thank you very much and congratulations.
    Best regards

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More