Answer the question
In order to leave comments, you need to log in
How to set transparent background with data-background-color?
Good evening! There was a problem. I do animation in Spine and export to json.
I insert the whole thing on the page and I can’t make the background of the animation transparent, although I can change the color.
Through css it does not make it possible to do this, c js is not very at odds.
Demo:
maksimkokhtenko.com/demo/flint
Html:
<div class="spine-widget" data-json="skeleton.json" data-atlas="skeleton.atlas" data-scale="0.5" data-animation="animation" style="height: 300px; width: 300px; "></div>
body {
background-image: url(bg.jpg);
background-repeat: no-repeat;
overflow-x: hidden;
background-size: 600px;
}
.spine-widget {
padding-top: 230px;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question