Note that there are some explanatory texts on larger screens.

plurals
  1. PONivo Slider Event Trigger with JQuery
    primarykey
    data
    text
    <p>I've found answers to problems here a number of times and it seems like a really great community! I am currently using the Nivo slider for a project for a client:</p> <p><a href="http://nivo.dev7studios.com/support/jquery-plugin-usage/" rel="nofollow">http://nivo.dev7studios.com/support/jquery-plugin-usage/</a></p> <p>I also have 3 image button on the page that have animations on hover using JQuery. On hover the button will change it's background image and slightly animate.</p> <p>My client wants this animation to synchronize with the last slide of the Nivo slider, meaning the animation will occur when the last slide fades in, and the animation will deactivate when the slider starts over.</p> <p>I have the animation working, but the problem is, the Nivo options won't allow you to trigger an event on a specific slide, or at least not that I can figure out.</p> <p>I am using the Nivo options beforeChange to start the event, and slideshowEnd to deactivate the event. The problem is, beforeChange makes the animation activate after the first slide and I can't figure out how to make it trigger before the last slide.</p> <p>This is the code I am using:</p> <pre><code>beforeChange: function(){ $('a.shop').animate({"margin-top": "-15px"}, "400"); $('a.shop').css("background", "url(images/shop_button_hov.png) top center no-repeat"); }, slideshowEnd: function(){ $('a.shop').animate({"margin-top": "0px"}, "400"); $('a.shop').css("background", "url(images/shop_button.png) top center no-repeat"); } </code></pre> <p>I am not really a JQuery expert, I can use it and make slight edits, but I'm far from able to make my own functions.</p> <p>Any help would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload