Tuesday, June 11, 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

[Wordpress issuses] johnphotographer on "cannot export all content"
johnphotographer on "cannot export all content"
[Wordpress issuses] franciswright on "How do I restore my posting to its former glory ?"
franciswright on "How do I restore my posting to its former glory ?"
[Help Wordpress] How do I remove the padding around a custom html slider?
Help Wordpress
How do I remove the padding around a custom html slider ...help.dimsemenov.com/.../royalsl...
[Help Wordpress] Remove padding around my custom slider
Help Wordpress
Remove padding around my custom slider - RoyalSlider Supporthelp.dimsemenov.com/.../royals...
[Help Wordpress] Fullscreen loading issues: Image appears after I resize the screen
Fullscreen loading issues: Image appears after I resize the screen
Fullscreen loading issues: Image appears after I resize the screen ...help.dimsemenov.com/...