Skip Navigation

[Resolved] Frontend Events

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#863371

Tell us what you are trying to do?

Built a slider using views and added movement using scrollReveal. This works, however it kills the other scrollReveal effects on the page. Is there a way to restrict the frontend events to only affect the view and not the whole page?

Here is the frontend event I am using:

jQuery( document ).on( 'js_event_wpv_pagination_completed', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.effect (string) The View AJAX pagination effect
* data.speed (integer) The View AJAX pagination speed in miliseconds
* data.layout (object) The jQuery object for the View layout wrapper
*/
new scrollReveal();
});

I have tried messing with the commented out sections without luck. Here is a page that displays my issue: hidden link

There is a blue bar at the bottom of the page that will fire it's scrollReveal effect up until the point the pagination occurs.

#864650

Hello,

There isn't such a built-in feature within Vies plugin, your custom JS codes will take effect on the entire page, I suggest you check it with the developers of scrollReveal, check if it is possible to restrict events to some specific HTML element.

I have search the keyword "scrollReveal" with google, find this document:
hidden link

For your reference.