Jump to content
Search Community

9lines

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by 9lines

  1. Hi!

     

    I try animate className property. Something like below.

     

    timeline.to(vars.$morph, 3, {
    	className: '+=morph--index-12',
    	roundProps: 'className',
    });

     

    .morph--index-1 {
    	background-image: url("../images/animations/main-test/main-test-1.png");
    	background-size: cover;
    	background-repeat: no-repeat;
    }

     

    Stylesheet has classes from .morpth--index-1 to .morph--index-12

     

    But when animating - background-image property has decimal values.

     

    image.jpg.80c392b65d7da7bbecf17bf61de304a0.jpg

     

    roundProps: "className, class, background, backgroundImage, all" - none each of them don't work.

    • Like 1
×
×
  • Create New...