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

[Help Wordpress] Why isn't this mustache markup working?
Help Wordpress
Hi,I've been using the following custom markup with the default theme, but all I'm seeing ...
[Help Wordpress] Parallax effect on fullsized background slider
Help Wordpress
I'd be willing to learn what is needed to get this to function that way by using the API. ...
[Help Wordpress] Posts Slider Author Avatar
Help Wordpress
I need to auto generate a slider from posts that show the excerpy, and featured image in t...
[WP issuses] usertiecomunicacao on "[Plugin: WP Forum Server] Translate to pt_BR (Brazilian Portuguese)"
usertiecomunicacao on "[Plugin: WP Forum Server] Translate to pt_BR (Brazilian Portuguese)"
tiagoabastosMemberPosted 5 months ago #usertiecomunicacaoMemberPosted 5 months ago #Hello ...
[WP issuses] drewstar13 on "[Plugin: WP Forum Server] Forum Server Registration Error"
drewstar13 on "[Plugin: WP Forum Server] Forum Server Registration Error"
drewstar13MemberPosted 2 months ago #I have Forum Server set up on my site. When you are a...