Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Forum link : ( link is hidden, you must reply to see )
Description of problem
Hello!So I am using code like this:
- Code:
$(".m1").click(function(){
$(".m1cont").fadeToggle("slow", function() {
if ($(".m1cont").is(":visible")) {
$('.ANcontent').css({"background-image": "none", "transition": "1s", "transform" : "all"});
};
if ($(".m1cont").is(":hidden")) {
$('.ANcontent').css({"background-image": "url('https://i.solidfiles.com/k3x8BVeKK3vjy.png')", "transition": "1s", "transform" : "all"});
};
});
$(".m2cont, .m3cont, .m4cont, .m5cont, .m6cont, .m7cont, .m8cont").css("display", "none");
});
Finally got it to work as intended, BUT the style transition (background image change) is, well, not existant. The image changes according to IF condition, but transition tag does not work. Any ideas how to make it more smooth?
Last edited by Kami-sama on August 1st 2017, 1:18 pm; edited 1 time in total