This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Custom Css Circularslider
#6
You can change color via hue-rotate CSS filter. In this example additional class is set to slider and control object is 32/1/2. This will only work in "show control" mode.

Code:
$(function(){
  if (typeof grp === 'object') {
    grp.listen('32/1/2', function(obj) {
      $('.slider').css('filter', 'hue-rotate(' + (obj.value * 3) + 'deg)');
    });
  }
});
Reply


Messages In This Thread
Custom Css Circularslider - by JoseJimenez94 - 13.11.2018, 16:41
RE: Custom Css Circularslider - by Daniel - 13.11.2018, 16:48
RE: Custom Css Circularslider - by DGrandes - 05.03.2019, 09:21
RE: Custom Css Circularslider - by Daniel - 13.11.2018, 17:18
RE: Custom Css Circularslider - by admin - 05.03.2019, 10:27

Forum Jump: