Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #729586

    Hi support !
    Happy new year to all the team !

    I’m using the parallax effect on Enfold, but I find it a little bit lazy and slow
    Is it possible to make the parallax slide effect more faster like the site in the private content ?
    Is it possible to set it by a clean way like a function ?

    I know that there’s a speed factor :
    0.0 means the image will appear fixed in place, and 1.0 the image will flow at the same speed as the page content.
    I will need to decrease the float amount to make the transition faster

    There this kind of factor in enfold\config-templatebuilder\avia-shortcodes\section.php line 557
    $speed = apply_filters(‘avf_parallax_speed’, “0.3”, $params[‘id’]);

    Is it possible to overide this parameter with a function if it’s the correct parameter for parallax speed ?

    Many thanks
    Kind regards

    • This topic was modified 7 years, 11 months ago by Rikard.
    #730161

    Hey Ikyo,

    You can add this code in functions.php:

    add_filter('avf_parallax_speed','avia_change_parallax_ratio', 10, 2);
    function avia_change_parallax_ratio($ratio, $id){
      $ratio = "0.3";
      return $ratio;
    }

    Just change 0.3 to adjust the speed. Hope this helps.

    Best regards,
    Nikko

    #730222

    Great great great !
    What a support !

    Many thanks Nikko

    #730592

    Hi,

    Glad we could help :-)

    Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Parallax’ is closed to new replies.