javascript - Why is my jQuery SlideDown animations Laggy/Jumpy? -
i have been trying implement slidedown animation show div when div clicked on.
i have come across many issues sorted, main issue jquery animation laggy , jumpy
is there can smoothen animations? read easing plugin - help?
code here: http://www.bootply.com/a8przgsjtl
jquery:
$(document).ready(function() { $(".virus").click(function() { $(".v").siblings().hide(); $(".information").slidedown(2000); $(".v").fadein('slow'); $('html, body').animate({scrolltop:200}, 1000) }); $(".screenrepair").click(function() { $(".screeninfo").siblings().hide(); $(".information").slidedown(2000); $(".screeninfo").fadein(1000); $('html, body').animate({scrolltop:200}, 1000); }); $(".softwarerepair").click(function() { $(".softwarer").siblings().hide(); $(".information").slidedown('slow'); $(".softwarer").fadein('slow'); $('html, body').animate({scrolltop:200}, 1000); }); $(".memoryupgrades").click(function() { $(".memoryinfo").siblings().hide(); $(".information").slidedown("slow"); $(".memoryinfo").fadein('slow'); $('html, body').animate({scrolltop:200}, 1000); }); $(".hardwarerepair").click(function() { $(".hardwareinfo").siblings().hide(); $(".information").slidedown('slow'); $(".hardwareinfo").fadein("slow"); $('html, body').animate({scrolltop:200}, 1000); }); $(".windowsreinstall").click(function() { $(".windowsinfo").siblings().hide(); $(".information").slidedown("slow"); $(".windowsinfo").fadein("slow"); $('html, body').animate({scrolltop:200}, 1000); }); $(".datarecovery").click(function() { $(".datainfo").siblings().hide(); $('.information').slidedown('slow'); $(".datainfo").fadein("slow"); $('html, body').animate({scrolltop:200}, 1000); }); $(".maintenance").click(function() { $(".maintenanceinfo").siblings().hide(); $('.information').slidedown('slow'); $('html, body').animate({scrolltop:200}, 1000); $(".maintenanceinfo").fadein("slow"); }); $("#close").click(function() { $(".information").slideup('slow'); }); });
a common issue images, if elements contains or have images background make sure not heavy...
Comments
Post a Comment