In the documentation for the nivo slider here, you can change the effect for each slide by adding a user data attribute to all or all images and it will override the nivo default transition:
<img src="images/slide1.jpg" alt="" data-transition="slideInLeft" />
You can change this user data dynamically by installing an event handler on the body of the document to find the keystroke, and then change the attr of all the images using the snippet below:
$('body').on('keypress', function(){ $('img').attr("data-transition","slideInLeft"); });
You can get more advanced and go to certain types of transitions based on a keystroke by adding some logic, but this is a general idea. A working fiddle is here: http://jsfiddle.net/gregjuva/2ZXCp/
source share