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.

JS/CSS style.transition
#1
Hi all,

in this JS, I manage CSS attributes of an image, but "transition" doesn't work : is there any reason ?

Thank's in advance for your help.

Code:
$(function(){
  if (typeof grp != 'undefined') {
    grp.listen('0/0/2', function(object, state) {
      var value = object.value;
      if (value == 10) {
    var elem = document.getElementsByClassName('testVR');
    elem[0].style.transition = 'height 2s linear 1s';
    elem[0].style.height     = '100px';
    elem[0].style.overflow   = 'hidden';       
        }
      },true);
  }
});
Reply


Messages In This Thread
JS/CSS style.transition - by SigmaTec - 23.12.2020, 14:33
RE: JS/CSS style.transition - by admin - 23.12.2020, 15:29
RE: JS/CSS style.transition - by SigmaTec - 23.12.2020, 15:46
RE: JS/CSS style.transition - by admin - 28.12.2020, 08:02

Forum Jump: