Anyway to add static value for properties css via anime function?
docodev opened this issue · comments
DocoDev commented
Hi everyone,
This library is awesome for animation. I just very excited to try it.
So today I have a problem,
in my case, I just want to add static value like url for background-image or italic for text-style, because I don't want split my object properties, It's too much objects, I swear, so anyone can help me?
Thank so you much.
manake commented
Please post a code example.
You can set static styles in style.css:
.box {
opacity: 0;
background-image: url('image.jpg');
}
And in anime.js you would only animate dynamic properties, there is no need to set static properties using anime.js:
anime({
targets: '.box',
opacity: 1,
});