Wednesday, June 26, 2013

[Help Wordpress] Changing transition type based on device


Changing transition type based on device



Is there a way to set the slide transition type so that it is fade for desktops and laptops, and move for phones and tablets? I previously purchased the jquery version and implemented this by checking a media-dependent css value:


if ($("#header").css("position") == "relative" ){
var transitiontype = "move";
}
else {
var transitiontype = "fade";
}


$(".royalSlider").royalSlider({
transitionType: transitiontype,
});


I'm new to WP. How can I do the same thing with the WordPress version?



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post