WordPress.org

Forums

Scroll Triggered Boxes
[resolved] Trigger Scroll Box with jQuery (3 posts)

  1. FunnelEnvy.Eddy
    Member
    Posted 1 year ago #

    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/

  2. FunnelEnvy.Eddy
    Member
    Posted 1 year ago #

    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?

  3. Danny van Kooten
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Scroll Triggered Boxes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic