Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1266915

    HI guys! I used to use this CSS snippet to modify the left to right and right to left animation. It used to work well but now it doesn’t seem to work anymore. Here it is:

    .avia_transform .avia_start_delayed_animation.left-to-right {
        -webkit-animation: avia-ltr .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275) !important;
        animation: avia-ltr .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275) !important;
        opacity: 1 !important;
    }
    
    .avia_transform .avia_start_delayed_animation.right-to-left {
        -webkit-animation: avia-rtl .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275) !important;
        animation: avia-rtl .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275)!important; 
        opacity: 1 !important;
    }
    #1266920

    this is nearly the same rule from shortcodes.css – and you only want to overwrite the timing to 0.7s

    one difference is that original shortcodes.css has 0.8s – and allthough i could not imagine that the 0. is mandatory try it with 0.7s instead of .7s

    and you do not see the code on developer tools to be active? because i couldn’t see a difference of 0.1s

    #1267195

    when i used this css before, it removed the “bounce” and made the animation feel more smooth. It didn’t just change the duration. Maybe I have the wrong snippet though

    #1267673

    Hi,

    Thank you for the update.

    The animation seems to be working as it should, the slight bounce at the end of the effect is still there. We checked the site on Chrome Windows 10 as seen in the screenshot below.

    Screenshot: https://imgur.com/a/FkYlidc

    Best regards,
    Ismael

    #1268803

    Hi Ismael, I want to actually remove the slight bounce and slow down the animation so it feels a bit more fluid.

    #1269213

    Hi,

    Thank you for the info. Try to replace the animation-timing-function to linear from cubic-bezier.

    // https://www.w3schools.com/cssref/css3_pr_animation-timing-function.asp

    Best regards,
    Ismael

    #1269354

    Hi, thanks! where in the code would i make this medication and how? Sorry, not a developer so I’m not sure what to do..

    .avia_transform .avia_start_delayed_animation.left-to-right {
        -webkit-animation: avia-ltr .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275) !important;
        animation: avia-ltr .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275) !important;
        opacity: 1 !important;
    }
    
    .avia_transform .avia_start_delayed_animation.right-to-left {
        -webkit-animation: avia-rtl .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275) !important;
        animation: avia-rtl .7s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275)!important; 
        opacity: 1 !important;
    }
    #1269850

    Hi,

    You could replace this part of the animation property.

    cubic-bezier(0.175, 0.885, 0.320, 1.275)
    

    The code should look something like the following.

    .avia_transform .avia_start_delayed_animation.left-to-right {
        -webkit-animation: avia-ltr .7s 1 linear !important;
        animation: avia-ltr .7s 1 linear !important;
        opacity: 1 !important;
    }
    

    For more info, please check the following link.

    // https://www.w3schools.com/css/css3_animations.asp

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.