WordPress.org

Support

Support » Plugins and Hacks » Scroll Triggered Boxes » [Resolved] Trigger Scroll Box with jQuery

[Resolved] Trigger Scroll Box with jQuery

  • I currently use your scroll triggered boxes on a homepage, but I want to know if there is a way to trigger the scroll box based off of jquery. Reason why I ask is because I’m injecting changes to the dom to do an a/b test. I want to inject a jquery that triggers the box for the a/b test if the user lands on variation B of course.

    Thanks!

    https://wordpress.org/plugins/scroll-triggered-boxes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Let me fix my statement a bit, I’m currently using something like Optimezly that injects changes through the DOM. I want to be able to trigger your scoll box with a jquery request if the user lands on “Variation B”, is this possible?

    Plugin Author Danny van Kooten

    @dvankooten

    Hi Eddy,

    You should be able to toggle the box using a simple jQuery line like this.

    $(".scroll-triggered-box").fadeToggle();

    Or, if you’re using the slide animation.

    $(".scroll-triggered-box").slideToggle();

    Hope that pushes you in the right direction.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Trigger Scroll Box with jQuery’ is closed to new replies.
Skip to toolbar