Support » Plugin: Timed Content » Fade transition

  • The plugin is great, thanks!
    I have one question: how can I edit the transition? I want to have it fade, but now I thinks it swipes by default. I can’t see where to change that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Transitions can’t be edited at the moment. You can only set the time how long a transition will take.

    Technically: Timed Contend uses the hide() and show() methods of jQuery (also see https://api.jquery.com/hide/ and https://api.jquery.com/show/. If you want to have additional variations and are able to provide the neccessary script additions, feel free to send a pull request or your alternatives, so I can add these as an option to the shortcodes or rules. The code for the current implementation is here:

    https://github.com/arnowelzel/timed-content/blob/master/js/timed-content.js

    Hi Arno,

    Thanks for your quick reply.
    I have tried to alter the code, but unfortunatelly my jQuery skills are not to good.
    Is there a way I can overide the default transition and replace it by fadeIn and fadeOut with a hook in functions.php? Or maybe you have another suggestion how to achieve this?
    Thanks,

    Plugin Author Arno Welzel

    (@awelzel)

    The transitions are JavaScript only and there is no hook yet to change them. Maybe I add some options for this in a future update when I have more time.

    Ok thanks.
    For now I changed the code and replaced .hie and .show with .fadeOut and .fadeIn.

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