javascript - How to Customize jCountdown timer which is using css sprite resources to become auto Responsive? -


the jcountdown plugin has effect. https://0.s3.envato.com/files/42592367/index.html

however inspecting resources, seems plugin using css sprite animation achieve effect. wondering how difficult make become responsive/albe view without seeing horizontal overflow-x scroll bar on small dimensions < 485px.

i'll using "slide" effect below img slide_black skin. maybe can share tips on customizing script / css / or photoshop image create diff dimensions fit responsive.

enter image description here

using width option 1 option think pitfall result blur day/hour/min/sec label picture text

$("#timer").jcountdown({              timetext:  tdate,                                      timezone: 8,              style: "slide",              color: "black",              width: 225,              textgroupspace: 15,              textspace: 0,              reflection: !1,              reflectionopacity: 10,              reflectionblur: 0,              daytextnumber: 2,              displayday: !0,              displayhour: !0,              displayminute: !0,              displaysecond: !0,              displaylabel: !0,              onfinish: function() {}         });  

you can playing transform:scale() property, adding jquery find correct scale value , applying it. exemple :

var value = yourownratiocalculdependingonclosestresponsiveparent; $('.jcountdowncontainer').css({     "-moz-transform"    : "scale("+value+")",     "-webkit-transform" : "scale("+value+")",     "-ms-transform"     : "scale("+value+")",     "-o-transform"      : "scale("+value+")",     "transform"         : "scale("+value+")", }); 

as can see inspecting plugin, adding css scale .jcountdowncontainer works fine (with chrome dev tool exemple).


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -