[Resolved] slow the off canvas panel animation

Home Forums Support [Resolved] slow the off canvas panel animation

Home Forums Support slow the off canvas panel animation

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

    is there a way to slow down the off canvas panel slide in speed?

    #1389102
    David
    Staff
    Customer Support

    Hi there,

    add this CSS to your site:

    .offside-js--interact .offside, 
    .offside-js--interact .offside-sliding-element {
        -webkit-transition: -webkit-transform .2s cubic-bezier(.16, .68, .43, .99);
        -moz-transition: -moz-transform .2s cubic-bezier(.16, .68, .43, .99);
        -o-transition: -o-transform .2s cubic-bezier(.16, .68, .43, .99);
        transition: transform .2s cubic-bezier(.16, .68, .43, .99);
    }

    In the CSS there are 4 instances of .2s which is 0.2 seconds. Increase that to whatever you want in all 4 places.

    #1389685
    Jeffrey

    I have changed it to ranges from .90s to 2s (not sure im doing it right) and can’t see too much of a difference. What value would I put in there to noticeably slow it down?

    #1390232
    Tom
    Lead Developer
    Lead Developer

    Where are you adding that CSS? I’m not seeing it anywhere.

    #1390242
    Jeffrey

    in the additional css section -> customizer.

    I did just upgrade and enabled the css function for speed….

    #1390502
    Leo
    Staff
    Customer Support

    I think there is a small error in David’s code.

    Can you try the updated code instead?
    https://generatepress.com/forums/topic/slow-the-off-canvas-panel-animation/#post-1389102

    #1390540
    Jeffrey

    that did it! thank you ๐Ÿ™‚

    #1391725
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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